pub struct TokioTcpListener { /* private fields */ }Expand description
Wrapper for Tokio TcpListener to implement our trait.
Trait Implementations§
Source§impl Debug for TokioTcpListener
impl Debug for TokioTcpListener
Source§impl TcpListenerTrait for TokioTcpListener
impl TcpListenerTrait for TokioTcpListener
Source§fn accept<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(<TokioTcpListener as TcpListenerTrait>::TcpStream, String), Error>> + 'async_trait>>where
'life0: 'async_trait,
TokioTcpListener: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(<TokioTcpListener as TcpListenerTrait>::TcpStream, String), Error>> + 'async_trait>>where
'life0: 'async_trait,
TokioTcpListener: 'async_trait,
Accept a single incoming connection.
Auto Trait Implementations§
impl !Freeze for TokioTcpListener
impl RefUnwindSafe for TokioTcpListener
impl Send for TokioTcpListener
impl Sync for TokioTcpListener
impl Unpin for TokioTcpListener
impl UnwindSafe for TokioTcpListener
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more