pub struct UnixSeqpacketListener {
descriptor: SafeDescriptor,
no_path: bool,
}
Expand description
Like a UnixListener
but for accepting UnixSeqpacket
type sockets.
Fields§
§descriptor: SafeDescriptor
§no_path: bool
Implementations§
source§impl UnixSeqpacketListener
impl UnixSeqpacketListener
sourcepub fn accept(&self) -> Result<UnixSeqpacket>
pub fn accept(&self) -> Result<UnixSeqpacket>
Blocks for and accepts a new incoming connection and returns the socket associated with that connection.
The returned socket has the close-on-exec flag set.
source§impl UnixSeqpacketListener
impl UnixSeqpacketListener
sourcepub fn bind<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn bind<P: AsRef<Path>>(path: P) -> Result<Self>
Creates a new UnixSeqpacketListener
bound to the given path.
pub fn accept_with_timeout(&self, timeout: Duration) -> Result<UnixSeqpacket>
sourcepub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>
pub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>
Sets the blocking mode for this socket.
Trait Implementations§
source§impl AsRawDescriptor for UnixSeqpacketListener
impl AsRawDescriptor for UnixSeqpacketListener
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§impl AsRef<UnixSeqpacketListener> for UnlinkUnixSeqpacketListener
impl AsRef<UnixSeqpacketListener> for UnlinkUnixSeqpacketListener
source§fn as_ref(&self) -> &UnixSeqpacketListener
fn as_ref(&self) -> &UnixSeqpacketListener
Converts this type into a shared reference of the (usually inferred) input type.
source§impl From<UnixSeqpacketListener> for OwnedFd
impl From<UnixSeqpacketListener> for OwnedFd
source§fn from(val: UnixSeqpacketListener) -> Self
fn from(val: UnixSeqpacketListener) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for UnixSeqpacketListener
impl Send for UnixSeqpacketListener
impl Sync for UnixSeqpacketListener
impl Unpin for UnixSeqpacketListener
impl UnwindSafe for UnixSeqpacketListener
Blanket Implementations§
source§impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
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