Struct salvo_core::conn::unix::UnixListener
source · pub struct UnixListener<T> { /* private fields */ }
Available on Unix only.
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>>) -> Self
pub fn permissions(self, permissions: impl Into<Option<Permissions>>) -> Self
Provides permissions to be set on actual bind.
Trait Implementations§
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