Struct netcore::transport::memory::MemoryTransport
source · pub struct MemoryTransport;
Expand description
Transport to build in-memory connections
Trait Implementations§
source§impl Clone for MemoryTransport
impl Clone for MemoryTransport
source§fn clone(&self) -> MemoryTransport
fn clone(&self) -> MemoryTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryTransport
impl Debug for MemoryTransport
source§impl Default for MemoryTransport
impl Default for MemoryTransport
source§fn default() -> MemoryTransport
fn default() -> MemoryTransport
Returns the “default value” for a type. Read more
source§impl Transport for MemoryTransport
impl Transport for MemoryTransport
§type Inbound = Ready<Result<<MemoryTransport as Transport>::Output, <MemoryTransport as Transport>::Error>>
type Inbound = Ready<Result<<MemoryTransport as Transport>::Output, <MemoryTransport as Transport>::Error>>
§type Outbound = Ready<Result<<MemoryTransport as Transport>::Output, <MemoryTransport as Transport>::Error>>
type Outbound = Ready<Result<<MemoryTransport as Transport>::Output, <MemoryTransport as Transport>::Error>>
Auto Trait Implementations§
impl RefUnwindSafe for MemoryTransport
impl Send for MemoryTransport
impl Sync for MemoryTransport
impl Unpin for MemoryTransport
impl UnwindSafe for MemoryTransport
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> TransportExt for Twhere
T: Transport + ?Sized,
impl<T> TransportExt for Twhere T: Transport + ?Sized,
source§fn boxed(self) -> BoxedTransport<Self::Output, Self::Error>where
Self: Sized + Send + 'static,
Self::Listener: Send + 'static,
Self::Inbound: Send + 'static,
Self::Outbound: Send + 'static,
fn boxed(self) -> BoxedTransport<Self::Output, Self::Error>where Self: Sized + Send + 'static, Self::Listener: Send + 'static, Self::Inbound: Send + 'static, Self::Outbound: Send + 'static,
Turns a
Transport
into an abstract boxed transport.source§fn and_then<F, Fut, O>(self, f: F) -> AndThen<Self, F>where
Self: Sized,
F: FnOnce(Self::Output, NetworkAddress, ConnectionOrigin) -> Fut + Clone,
Fut: Future<Output = Result<O, Self::Error>>,
fn and_then<F, Fut, O>(self, f: F) -> AndThen<Self, F>where Self: Sized, F: FnOnce(Self::Output, NetworkAddress, ConnectionOrigin) -> Fut + Clone, Fut: Future<Output = Result<O, Self::Error>>,
Applies a function producing an asynchronous result to every connection
created by this transport. Read more