[−][src]Struct dusk_uds::UnixDomainSocket
Boilerplate for UnixListener.
Will receive a path to bind to, a set of options and an implementation of future that will handle the incoming sockets.
Methods
impl<T: TaskProvider> UnixDomainSocket<T>[src]
pub fn new<P: Into<PathBuf>>(
path: P,
options: Option<Options>,
provider: T
) -> Self[src]
path: P,
options: Option<Options>,
provider: T
) -> Self
Default constructor.
pub fn bind(self) -> Result<(), IoError>[src]
Will remove the UnixDomainSocket::path, if it exists, so it cant bind properly to that
location.
If the future returns a crate::Message::ShouldQuit, the worker threads will be finished after
the current queue of sockets and the main loop will end.
Auto Trait Implementations
impl<T> Send for UnixDomainSocket<T>
impl<T> Sync for UnixDomainSocket<T>
impl<T> Unpin for UnixDomainSocket<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for UnixDomainSocket<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for UnixDomainSocket<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,