pub struct TcpListener { /* private fields */ }Expand description
A TCP socket server, listening for connections.
Implementations§
Source§impl TcpListener
impl TcpListener
Sourcepub fn into_addr_incoming(self) -> AddrIncoming
pub fn into_addr_incoming(self) -> AddrIncoming
Convert the listener into another one that outputs AddrStreams.
Source§impl TcpListener
impl TcpListener
Trait Implementations§
Source§impl Accept for TcpListener
impl Accept for TcpListener
Source§type Error = OcallError
type Error = OcallError
The error type that can occur when accepting a connection.
Auto Trait Implementations§
impl Freeze for TcpListener
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin for TcpListener
impl UnsafeUnpin for TcpListener
impl UnwindSafe for TcpListener
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