[][src]Struct dusk_uds::UnixDomainSocket

pub struct UnixDomainSocket<T: TaskProvider + 'static> { /* fields omitted */ }
[]

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][]

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

impl<T> UnwindSafe for UnixDomainSocket<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for UnixDomainSocket<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]