pub struct PipeDataProducerToRouterPair {
pub pipe_data_consumer: DataConsumer,
pub pipe_data_producer: NonClosingDataProducer,
}
Expand description
Container for pipe data consumer and pipe data producer pair.
§Notes on usage
Pipe data consumer and pipe data producer will not be closed on drop, to control this manually
get pipe data producer out of non-closing variant with NonClosingDataProducer::into_inner()
call, otherwise pipe data consumer and pipe data producer lifetime will be tied to source data
producer lifetime.
Pipe data consumer is always tied to the lifetime of pipe data producer.
Fields§
§pipe_data_consumer: DataConsumer
The DataConsumer created in the current Router.
pipe_data_producer: NonClosingDataProducer
The DataProducer created in the target Router, get regular instance with
NonClosingDataProducer::into_inner()
call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipeDataProducerToRouterPair
impl !RefUnwindSafe for PipeDataProducerToRouterPair
impl Send for PipeDataProducerToRouterPair
impl !Sync for PipeDataProducerToRouterPair
impl Unpin for PipeDataProducerToRouterPair
impl !UnwindSafe for PipeDataProducerToRouterPair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more