pub struct MultiplexedConnection<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> { /* private fields */ }
Implementations§
Source§impl<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> MultiplexedConnection<TAsyncDuplex>
pub fn new(stream: TAsyncDuplex) -> Box<dyn Disconnected>
Trait Implementations§
Source§impl<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> Disconnected for MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> Disconnected for MultiplexedConnection<TAsyncDuplex>
fn connect<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn listen<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl<TAsyncDuplex> Freeze for MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex> !RefUnwindSafe for MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex> Send for MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex> Sync for MultiplexedConnection<TAsyncDuplex>where
TAsyncDuplex: Sync,
impl<TAsyncDuplex> Unpin for MultiplexedConnection<TAsyncDuplex>
impl<TAsyncDuplex> !UnwindSafe for MultiplexedConnection<TAsyncDuplex>
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