[−][src]Struct spirit_tokio::net::unix::Listen
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
path: The filesystem path to bind the socket to.
TODO
- Setting permissions on the newly bound socket.
- Ability to remove previous socket:
- In case it is a dead socket (leftover, but nobody listens on it).
- It is any socket.
- Always.
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: PathBufThe 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Listen[src]
impl Hash for Listen[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for Listen[src]
fn cmp(&self, other: &Listen) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Listen> for Listen[src]
impl PartialOrd<Listen> for Listen[src]
fn partial_cmp(&self, other: &Listen) -> Option<Ordering>[src]
fn lt(&self, other: &Listen) -> bool[src]
fn le(&self, other: &Listen) -> bool[src]
fn gt(&self, other: &Listen) -> bool[src]
fn ge(&self, other: &Listen) -> bool[src]
impl Serialize for Listen[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructDoc for Listen[src]
fn document() -> Documentation[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]
T: 'static + ?Sized,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoResult<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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>,