Skip to main content

InstalledPipe

Struct InstalledPipe 

Source
pub struct InstalledPipe<Protocol: PipeEnd, Transport> { /* private fields */ }

Implementations§

Source§

impl<Protocol: PipeEnd, Transport> InstalledPipe<Protocol, Transport>

Source

pub const fn new(transport: Transport) -> Self

Source

pub const fn transport(&self) -> &Transport

Source

pub const fn transport_mut(&mut self) -> &mut Transport

Source

pub fn into_transport(self) -> Transport

Source§

impl<Protocol, Transport> InstalledPipe<Protocol, Transport>
where Protocol: PipeEnd, Transport: PipeDriver<Protocol>,

Source

pub fn outgoing(&mut self) -> Transport::Outgoing<'_>

Source

pub fn drive<Handler>( &mut self, activation: Transport::Activation, handler: &mut Handler, ) -> ReceiveFromOutcome<(), Transport::Activation, DriveFailure<Transport::Failure, Handler::Failure>>
where Handler: PipeOutputHandler<Protocol, Transport>,

Source§

impl<Protocol, Transport> InstalledPipe<Protocol, Transport>
where Protocol: PipeEnd, Transport: AdmittedPipeDriver<Protocol>,

Source

pub fn drive_admitted<Handler>( &mut self, activation: Transport::Activation, handler: &mut Handler, ) -> ReceiveFromOutcome<(), Transport::Activation, DriveFailure<Transport::Failure, Handler::Failure>>
where Handler: PipeOutputHandler<Protocol, Transport> + IntakeGate<Transport::IntakeContext, Handler::Failure>,

Source§

impl<Protocol, Transport> InstalledPipe<Protocol, Transport>
where Protocol: PipeEnd, Transport: DuplexTransport<Protocol>,

Source

pub fn split(&mut self) -> (Transport::Incoming<'_>, Transport::Outgoing<'_>)

Source§

impl<Protocol, Transport> InstalledPipe<Protocol, Transport>
where Protocol: PipeEnd, Transport: TransportTo<Protocol>,

Source

pub fn send<'transport, 'message>( &'transport mut self, input: Protocol::Sends<'message>, ) -> Transport::Outcome<'transport, 'message>

Source§

impl<Protocol, Transport> InstalledPipe<Protocol, Transport>
where Protocol: PipeEnd, Transport: TransportFrom<Protocol>,

Source

pub fn receive_from<'message>( &'message mut self, incoming_message: Transport::IncomingMessage<'message>, ) -> ReceiveFromOutcome<Protocol::Receives<'message>, Transport::IncomingMessage<'message>, Transport::Failure>

Trait Implementations§

Auto Trait Implementations§

§

impl<Protocol, Transport> Freeze for InstalledPipe<Protocol, Transport>
where Transport: Freeze, PhantomData<fn() -> Protocol>: Freeze,

§

impl<Protocol, Transport> RefUnwindSafe for InstalledPipe<Protocol, Transport>
where Transport: RefUnwindSafe, PhantomData<fn() -> Protocol>: RefUnwindSafe,

§

impl<Protocol, Transport> Send for InstalledPipe<Protocol, Transport>
where Transport: Send, PhantomData<fn() -> Protocol>: Send,

§

impl<Protocol, Transport> Sync for InstalledPipe<Protocol, Transport>
where Transport: Sync, PhantomData<fn() -> Protocol>: Sync,

§

impl<Protocol, Transport> Unpin for InstalledPipe<Protocol, Transport>
where Transport: Unpin, PhantomData<fn() -> Protocol>: Unpin,

§

impl<Protocol, Transport> UnsafeUnpin for InstalledPipe<Protocol, Transport>
where Transport: UnsafeUnpin, PhantomData<fn() -> Protocol>: UnsafeUnpin,

§

impl<Protocol, Transport> UnwindSafe for InstalledPipe<Protocol, Transport>
where Transport: UnwindSafe, PhantomData<fn() -> Protocol>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.