Enstream
Convert Future
to Stream
in a simple and lightweight manner.
Crate is fully compatible with #![no_std]
.
Example usage
```rust
![feature(typealiasimpl_trait)]
use std::future::Future;
use enstream::{HandlerFn, HandlerFnLifetime, Yielder, enstream};
use futuresutil::{future::FutureExt, pinmut, stream::StreamExt};
struct StreamState<'a> {
val: &'a str
}
// A separate type alias is used to work around TAIT bugs
type Fut<'yielder, 'a: 'yielder> = impl Future