pub struct ListenerHandle { /* private fields */ }Expand description
An owned listening socket with what is known about it: its kind, an
optional name (up to 64 bytes), and its local endpoint. Dropping it closes
the socket. Made by crate::systemd, hand-off, and
Server::release_listeners; used by ListenerSpec::adopt.
Implementations§
Trait Implementations§
Source§impl AsFd for ListenerHandle
Available on Unix only.
impl AsFd for ListenerHandle
Available on Unix only.
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl Freeze for ListenerHandle
impl RefUnwindSafe for ListenerHandle
impl Send for ListenerHandle
impl Sync for ListenerHandle
impl Unpin for ListenerHandle
impl UnsafeUnpin for ListenerHandle
impl UnwindSafe for ListenerHandle
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