pub struct UnixListener { /* private fields */ }
Implementations§
source§impl UnixListener
impl UnixListener
pub fn bind<P>(path: P) -> Result<UnixListener>
pub fn from_std(listener: UnixListener) -> Result<UnixListener>
pub async fn accept(&self) -> Result<(UnixStream, SocketAddr)>
pub fn local_addr(&self) -> Result<SocketAddr>
Trait Implementations§
source§impl AsRawFd for UnixListener
impl AsRawFd for UnixListener
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