pub struct PipeProducerToRouterPair {
pub pipe_consumer: Consumer,
pub pipe_producer: PipedProducer,
}
Expand description
Container for pipe consumer and pipe producer pair.
§Notes on usage
Pipe consumer and Pipe producer will not be closed on drop, to control this manually get pipe
producer out of non-closing variant with PipedProducer::into_inner()
call,
otherwise pipe consumer and pipe producer lifetime will be tied to source producer lifetime.
Pipe consumer is always tied to the lifetime of pipe producer.
Fields§
§pipe_consumer: Consumer
The Consumer created in the current Router.
pipe_producer: PipedProducer
The Producer created in the target Router, get regular instance with
PipedProducer::into_inner()
call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipeProducerToRouterPair
impl !RefUnwindSafe for PipeProducerToRouterPair
impl Send for PipeProducerToRouterPair
impl !Sync for PipeProducerToRouterPair
impl Unpin for PipeProducerToRouterPair
impl !UnwindSafe for PipeProducerToRouterPair
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