pub enum Listener {
Tcp(TcpListener),
Unix(UnixListener),
}
Expand description
Unified listener. Either a TcpListener
or std::os::unix::net::UnixListener
Variants
Tcp(TcpListener)
Unix(UnixListener)
Trait Implementations
sourceimpl From<TcpListener> for Listener
impl From<TcpListener> for Listener
sourcefn from(s: TcpListener) -> Self
fn from(s: TcpListener) -> Self
Converts to this type from the input type.
sourceimpl From<UnixListener> for Listener
impl From<UnixListener> for Listener
sourcefn from(s: UnixListener) -> Self
fn from(s: UnixListener) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnwindSafe for Listener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more