Struct netcore::transport::boxed::BoxedTransport
source · pub struct BoxedTransport<O, E> { /* private fields */ }
Expand description
See the boxed method for more information.
Trait Implementations§
source§impl<O, E> Transport for BoxedTransport<O, E>where
E: Error + Send + Sync + 'static,
impl<O, E> Transport for BoxedTransport<O, E>where E: Error + Send + Sync + 'static,
§type Listener = Pin<Box<dyn Stream<Item = Result<(Pin<Box<dyn Future<Output = Result<O, E>> + Send + 'static, Global>>, NetworkAddress), E>> + Send + 'static, Global>>
type Listener = Pin<Box<dyn Stream<Item = Result<(Pin<Box<dyn Future<Output = Result<O, E>> + Send + 'static, Global>>, NetworkAddress), E>> + Send + 'static, Global>>
Auto Trait Implementations§
impl<O, E> !RefUnwindSafe for BoxedTransport<O, E>
impl<O, E> Send for BoxedTransport<O, E>
impl<O, E> !Sync for BoxedTransport<O, E>
impl<O, E> Unpin for BoxedTransport<O, E>
impl<O, E> !UnwindSafe for BoxedTransport<O, E>
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