pub struct InProcessTransport { /* private fields */ }Expand description
An in-process link: envelopes move by value, nothing is encoded.
The kernel sees the same Envelope type either way, so switching a peer from
in-process to TCP changes the transport and nothing else.
Implementations§
Source§impl InProcessTransport
impl InProcessTransport
Sourcepub fn pair() -> (InProcessTransport, InProcessTransport)
pub fn pair() -> (InProcessTransport, InProcessTransport)
A pipe pair. Sending on one end is receiving on the other.
Sourcepub fn queue() -> InProcessTransport
pub fn queue() -> InProcessTransport
A single-ended queue: send feeds recv on the same endpoint.
Trait Implementations§
Source§impl Clone for InProcessTransport
impl Clone for InProcessTransport
Source§impl Debug for InProcessTransport
impl Debug for InProcessTransport
Source§impl Default for InProcessTransport
impl Default for InProcessTransport
Source§impl Transport for InProcessTransport
impl Transport for InProcessTransport
Source§fn bytes_written(&self) -> u64
fn bytes_written(&self) -> u64
Bytes written on the wire so far (zero for in-process transports).
Auto Trait Implementations§
impl !RefUnwindSafe for InProcessTransport
impl !Send for InProcessTransport
impl !Sync for InProcessTransport
impl !UnwindSafe for InProcessTransport
impl Freeze for InProcessTransport
impl Unpin for InProcessTransport
impl UnsafeUnpin for InProcessTransport
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