pub struct UnlinkUnixSeqpacketListener(pub UnixSeqpacketListener);
Expand description

Used to attempt to clean up a UnixSeqpacketListener after it is dropped.

Tuple Fields§

§0: UnixSeqpacketListener

Methods from Deref<Target = UnixSeqpacketListener>§

source

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

pub fn accept_with_timeout(&self, timeout: Duration) -> Result<UnixSeqpacket>

source

pub fn path(&self) -> Result<PathBuf>

Gets the path that this listener is bound to.

source

pub fn set_nonblocking(&self, nonblocking: bool) -> Result<()>

Sets the blocking mode for this socket.

Trait Implementations§

source§

impl AsRawDescriptor for UnlinkUnixSeqpacketListener

source§

fn as_raw_descriptor(&self) -> RawDescriptor

Returns the underlying raw descriptor. Read more
source§

impl AsRef<UnixSeqpacketListener> for UnlinkUnixSeqpacketListener

source§

fn as_ref(&self) -> &UnixSeqpacketListener

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Deref for UnlinkUnixSeqpacketListener

§

type Target = UnixSeqpacketListener

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Drop for UnlinkUnixSeqpacketListener

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsRawDescriptors for T
where T: AsRawDescriptor,

source§

fn as_raw_descriptors(&self) -> Vec<i32>

Returns the underlying raw descriptors. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.