pub struct MemTransport { /* private fields */ }Trait Implementations§
Source§impl Transport for MemTransport
impl Transport for MemTransport
Source§fn open_uni<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxSend>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_uni<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxSend>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a unidirectional stream for data frames.
Source§fn accept_uni<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxRecv>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept_uni<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxRecv>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Accept the next unidirectional stream the peer opened.
Source§fn open_bi<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(BoxSend, BoxRecv)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open_bi<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(BoxSend, BoxRecv)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open the bidirectional control stream.
Source§fn accept_bi<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(BoxSend, BoxRecv)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept_bi<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(BoxSend, BoxRecv)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Accept the peer’s bidirectional control stream.
Source§fn peer_label(&self) -> String
fn peer_label(&self) -> String
Human-readable peer identity, for logs.
Source§fn bytes_sent(&self) -> Option<u64>
fn bytes_sent(&self) -> Option<u64>
Bytes already sent on this connection, if the transport tracks it.
Used to report true wire throughput against post-compression volume.
Auto Trait Implementations§
impl !Freeze for MemTransport
impl !RefUnwindSafe for MemTransport
impl Send for MemTransport
impl Sync for MemTransport
impl Unpin for MemTransport
impl UnsafeUnpin for MemTransport
impl UnwindSafe for MemTransport
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more