pub struct UnixListener<T> { /* private fields */ }Expand description
UnixListener is used to create a Unix socket connection listener.
Implementations§
Source§impl<T> UnixListener<T>
impl<T> UnixListener<T>
Sourcepub fn new(path: T) -> UnixListener<T>
pub fn new(path: T) -> UnixListener<T>
Creates a new UnixListener bind to the specified path.
Sourcepub fn permissions(
self,
permissions: impl Into<Option<Permissions>>,
) -> UnixListener<T>
pub fn permissions( self, permissions: impl Into<Option<Permissions>>, ) -> UnixListener<T>
Provides permissions to be set on actual bind.
Sourcepub fn owner(self, uid: Option<u32>, gid: Option<u32>) -> UnixListener<T>
pub fn owner(self, uid: Option<u32>, gid: Option<u32>) -> UnixListener<T>
Provides owner to be set on actual bind.
Sourcepub fn backlog(self, backlog: u32) -> UnixListener<T>
pub fn backlog(self, backlog: u32) -> UnixListener<T>
Set backlog capacity.
Trait Implementations§
Source§impl<T> Listener for UnixListener<T>
impl<T> Listener for UnixListener<T>
Auto Trait Implementations§
impl<T> Freeze for UnixListener<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnixListener<T>where
T: RefUnwindSafe,
impl<T> Send for UnixListener<T>where
T: Send,
impl<T> Sync for UnixListener<T>where
T: Sync,
impl<T> Unpin for UnixListener<T>where
T: Unpin,
impl<T> UnwindSafe for UnixListener<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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