pub struct UnixListener { /* private fields */ }
Expand description
A Unix socket cna accept connections from other Unix sockets.
Implementations§
Source§impl UnixListener
impl UnixListener
pub fn bind(path: impl AsRef<Path>) -> Result<UnixListener>
pub fn local_addr(&self) -> Result<SocketAddr>
pub fn incoming(self) -> Incoming
Trait Implementations§
Source§impl AsRawFd for UnixListener
impl AsRawFd for UnixListener
Source§impl AsyncReady for UnixListener
impl AsyncReady for UnixListener
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Ok, Self::Err>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<Self::Ok, Self::Err>>
Check if the stream can be read from.
Source§type Ok = (UnixStream, SocketAddr)
type Ok = (UnixStream, SocketAddr)
The type of successful values yielded by this trait.
Source§impl Debug for UnixListener
impl Debug 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