pub enum StdListener {
Tcp(TcpListener),
Unix(UnixListener),
}
Expand description
A listener that can be either a std::net::TcpListener
or a
std::os::unix::net::UnixListener
.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StdListener
impl RefUnwindSafe for StdListener
impl Send for StdListener
impl Sync for StdListener
impl Unpin for StdListener
impl UnwindSafe for StdListener
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