pub struct UnixSeqpacketListener { /* private fields */ }
Expand description
Listener for UnixSeqpacket
Implementations§
Source§impl UnixSeqpacketListener
impl UnixSeqpacketListener
Sourcepub fn bind_with_backlog<P: AsRef<Path>>(
path: P,
backlog: c_int,
) -> Result<Self>
pub fn bind_with_backlog<P: AsRef<Path>>( path: P, backlog: c_int, ) -> Result<Self>
Creates a new UnixSeqpacketListener
bound to the specified path with custom backlog
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 specified path with default backlog(128)
Sourcepub async fn accept(&self) -> Result<(UnixSeqpacket, SocketAddr)>
pub async fn accept(&self) -> Result<(UnixSeqpacket, SocketAddr)>
Accept a UnixSeqpacket
Trait Implementations§
Source§impl AsRawFd for UnixSeqpacketListener
impl AsRawFd for UnixSeqpacketListener
Source§impl Debug for UnixSeqpacketListener
impl Debug for UnixSeqpacketListener
Source§impl Stream for UnixSeqpacketListener
impl Stream for UnixSeqpacketListener
Source§type Item = Result<(UnixSeqpacket, SocketAddr), Error>
type Item = Result<(UnixSeqpacket, SocketAddr), Error>
Values yielded by the stream.
Auto Trait Implementations§
impl Freeze for UnixSeqpacketListener
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> 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