reown-com / a2

An Asynchronous Apple Push Notification (apns2) Client for Rust
MIT License
150 stars 52 forks source link

Refactor client to use 'impl Trait` #19

Closed pimeys closed 6 years ago

pimeys commented 6 years ago

The conservative impl Trait is landing to stable Rust later this year. Refactoring the client so we don't allocate and box for the returned future would make this lib's footprint smaller and even better, the code would look much better.

It might require a new version of Tokio, we'll see.

pimeys commented 6 years ago

Due to Service trait and general idea how an external API should work, I think it's better to keep the future boxed here.