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

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§

impl UnixSeqpacketListener

source

pub fn bind<P: AsRef<Path>>(path: P) -> Result<Self>

Creates a new UnixSeqpacketListener bound to the given path.

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 UnixSeqpacketListener

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 From<UnixSeqpacketListener> for OwnedFd

source§

fn from(val: UnixSeqpacketListener) -> Self

Converts to this type from the input type.

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.