pub struct MuxListener<T> { /* private fields */ }
Expand description
Listener struct returned by StreamMultiplexor<T>::bind()
Implementations§
Source§impl<T: AsyncRead + AsyncWrite + Send + Unpin + 'static> MuxListener<T>
impl<T: AsyncRead + AsyncWrite + Send + Unpin + 'static> MuxListener<T>
Sourcepub async fn accept(&self) -> Result<DuplexStream>
pub async fn accept(&self) -> Result<DuplexStream>
Accept a connection from the remote side
Trait Implementations§
Source§impl<T> Debug for MuxListener<T>
impl<T> Debug for MuxListener<T>
Auto Trait Implementations§
impl<T> Freeze for MuxListener<T>
impl<T> !RefUnwindSafe for MuxListener<T>
impl<T> Send for MuxListener<T>
impl<T> Sync for MuxListener<T>
impl<T> Unpin for MuxListener<T>
impl<T> !UnwindSafe for MuxListener<T>
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