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