pub struct Listener {
pub inner: TcpListener,
}Expand description
A TcpListener that returns Tube when a connection is accepted.
Fields§
§inner: TcpListenerThe inner TcpListener
Implementations§
Trait Implementations§
Source§impl From<Listener> for TcpListener
impl From<Listener> for TcpListener
Source§impl From<TcpListener> for Listener
impl From<TcpListener> for Listener
Source§fn from(inner: TcpListener) -> Self
fn from(inner: TcpListener) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnwindSafe for Listener
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