Struct may::net::TcpListener
source · pub struct TcpListener { /* private fields */ }
Implementations§
source§impl TcpListener
impl TcpListener
pub fn inner(&self) -> &TcpListener
pub fn bind<A: ToSocketAddrs>(addr: A) -> Result<TcpListener>
pub fn accept(&self) -> Result<(TcpStream, SocketAddr)>
pub fn incoming(&self) -> Incoming<'_>
pub fn local_addr(&self) -> Result<SocketAddr>
pub fn try_clone(&self) -> Result<TcpListener>
pub fn take_error(&self) -> Result<Option<Error>>
Trait Implementations§
source§impl AsRawSocket for TcpListener
impl AsRawSocket for TcpListener
source§fn as_raw_socket(&self) -> RawSocket
fn as_raw_socket(&self) -> RawSocket
Extracts the raw socket. Read more
source§impl Debug for TcpListener
impl Debug for TcpListener
source§impl FromRawSocket for TcpListener
impl FromRawSocket for TcpListener
source§unsafe fn from_raw_socket(s: RawSocket) -> TcpListener
unsafe fn from_raw_socket(s: RawSocket) -> TcpListener
Constructs a new I/O object from the specified raw socket. Read more
source§impl IntoRawSocket for TcpListener
impl IntoRawSocket for TcpListener
source§fn into_raw_socket(self) -> RawSocket
fn into_raw_socket(self) -> RawSocket
Consumes this object, returning the raw underlying socket. Read more
Auto Trait Implementations§
impl Freeze for TcpListener
impl RefUnwindSafe for TcpListener
impl Send for TcpListener
impl Sync for TcpListener
impl Unpin 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