pub struct DomainSocketListener { /* private fields */ }Expand description
Unix Domain Socket IPC manager
Listener implementation for Unix sockets as the underlying IPC mechanism.
Holds references to a UnixListener.
Implementations§
Trait Implementations§
Source§impl Debug for DomainSocketListener
impl Debug for DomainSocketListener
Source§impl Listen for DomainSocketListener
impl Listen for DomainSocketListener
Source§fn set_timeout(&mut self, duration: Duration)
fn set_timeout(&mut self, duration: Duration)
Set the timeout on read and write calls on any stream returned by this listener.
Source§fn accept(&self) -> Option<Connection>
fn accept(&self) -> Option<Connection>
Non-blocking call that gets the next client connection and returns a stream
(a Read and Write trait object). Requests are read from the stream and responses are written
to it. Streams returned by this method should have a timeout period as set by the
set_timeout method.
If no connections are present, return None.
If there are any errors in establishing the connection other than the missing
initialization, the implementation should log them and return None.
Send is needed because the stream is moved to a thread. Read moreAuto Trait Implementations§
impl Freeze for DomainSocketListener
impl RefUnwindSafe for DomainSocketListener
impl Send for DomainSocketListener
impl Sync for DomainSocketListener
impl Unpin for DomainSocketListener
impl UnwindSafe for DomainSocketListener
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