pub struct Listener { /* private fields */ }Expand description
EIS listener in a Unix socket.
Implementations§
Source§impl Listener
impl Listener
Sourcepub fn bind(path: &Path) -> Result<Self>
pub fn bind(path: &Path) -> Result<Self>
Listens on a specific path.
§Errors
Will return Err if binding to the given path or setting the socket to
non-blocking mode fails.
Trait Implementations§
Source§impl AsFd for Listener
impl AsFd for Listener
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl Freeze for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listener
impl UnwindSafe for Listener
Blanket Implementations§
Source§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
Source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
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