pub struct UnixListener { /* private fields */ }
Implementations§
Source§impl UnixListener
impl UnixListener
pub fn bind<P: AsRef<Path>>(path: P) -> Result<UnixListener>
pub fn new(sock: UnixListener) -> Result<UnixListener>
pub fn accept(&self) -> Result<(UnixStream, SocketAddr)>
pub fn try_clone(&self) -> Result<UnixListener>
pub fn local_addr(&self) -> Result<SocketAddr>
pub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>
pub fn take_error(&self) -> Result<Option<Error>>
Trait Implementations§
Source§impl AsRawFd for UnixListener
impl AsRawFd for UnixListener
Source§impl Debug for UnixListener
impl Debug for UnixListener
Source§impl FromRawFd for UnixListener
impl FromRawFd for UnixListener
Source§unsafe fn from_raw_fd(fd: RawFd) -> UnixListener
unsafe fn from_raw_fd(fd: RawFd) -> UnixListener
Constructs a new instance of
Self
from the given raw file
descriptor. Read moreSource§impl IntoRawFd for UnixListener
impl IntoRawFd for UnixListener
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 !Freeze for UnixListener
impl RefUnwindSafe for UnixListener
impl Send for UnixListener
impl Sync for UnixListener
impl Unpin for UnixListener
impl UnwindSafe for UnixListener
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