pub enum Pipe {
Local {
rx: Receiver<Envelope>,
tx: Sender<Envelope>,
initiator: bool,
},
Piped {
pipe: BoxTransport,
initiator: bool,
},
PipedWithStreams {
pipe: BoxTransport,
initiator: bool,
streams: Option<Arc<ConnectionStreams>>,
},
}Variants§
Implementations§
Source§impl Pipe
impl Pipe
pub fn piped_with_streams( pipe: BoxTransport, initiator: bool, streams: Arc<ConnectionStreams>, ) -> Pipe
Auto Trait Implementations§
impl !RefUnwindSafe for Pipe
impl !Sync for Pipe
impl !UnwindSafe for Pipe
impl Freeze for Pipe
impl Send for Pipe
impl Unpin for Pipe
impl UnsafeUnpin for Pipe
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