Struct dcl_rpc::stream_protocol::Generator
source · pub struct Generator<M>(_);Expand description
Generator struct contains only one field which it’s an unbounded receiver from unounded channel from tokio crate
The other half of the unbounded channel is given to the GeneratorYielder
Implementations§
source§impl<M: Send + Sync + 'static> Generator<M>
impl<M: Send + Sync + 'static> Generator<M>
sourcepub fn create() -> (Self, GeneratorYielder<M>)
pub fn create() -> (Self, GeneratorYielder<M>)
Creates an unbounded channel and returns a Generator and GeneratorYielder