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 AsIoData for TcpListener
impl AsIoData for TcpListener
fn as_io_data(&self) -> &IoData
source§impl AsRawFd for TcpListener
impl AsRawFd for TcpListener
source§impl Debug for TcpListener
impl Debug for TcpListener
source§impl FromRawFd for TcpListener
impl FromRawFd for TcpListener
source§unsafe fn from_raw_fd(fd: RawFd) -> TcpListener
unsafe fn from_raw_fd(fd: RawFd) -> TcpListener
Constructs a new instance of
Self
from the given raw file
descriptor. Read moresource§impl IntoRawFd for TcpListener
impl IntoRawFd for TcpListener
source§fn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
Auto Trait Implementations§
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