[][src]Struct spirit_tokio::net::unix::Listen

#[non_exhaustive]pub struct Listen {
    pub path: PathBuf,
}

Configuration of where to bind a unix domain socket.

This is the lower-level configuration fragment that doesn't directly provide much functionality. But it is the basic building block of both UnixListen and UnixDatagram.

Note that this does provide the Default trait, but the default value is mostly useless.

Configuration options

TODO

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
path: PathBuf

The path on the FS where to create the unix domain socket.

Implementations

impl Listen[src]

pub fn create_listener(&self) -> Result<StdUnixListener, AnyError>[src]

Creates a unix listener.

This is a low-level function, returning the blocking (std) listener.

pub fn create_datagram(&self) -> Result<StdUnixDatagram, AnyError>[src]

Creates a unix datagram socket.

This is a low-level function, returning the blocking (std) socket.

Trait Implementations

impl Clone for Listen[src]

impl Debug for Listen[src]

impl Default for Listen[src]

impl<'de> Deserialize<'de> for Listen[src]

impl Eq for Listen[src]

impl Hash for Listen[src]

impl Ord for Listen[src]

impl PartialEq<Listen> for Listen[src]

impl PartialOrd<Listen> for Listen[src]

impl Serialize for Listen[src]

impl StructDoc for Listen[src]

impl StructuralEq for Listen[src]

impl StructuralPartialEq for Listen[src]

Auto Trait Implementations

impl RefUnwindSafe for Listen

impl Send for Listen

impl Sync for Listen

impl Unpin for Listen

impl UnwindSafe for Listen

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> IntoResult<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.