Struct spirit_tokio::net::UdpListen[][src]

#[non_exhaustive]pub struct UdpListen<ExtraCfg = Empty> {
    pub listen: Listen,
    pub extra_cfg: ExtraCfg,
}

A configuration fragment describing a bound UDP socket.

This is similar to TcpListen, but for UDP sockets.

Type parameters

  • ExtraCfg: Extra options folded into this configuration, for application specific options. They don’t influence the socket in any way.

Configuration options

In addition to options provided by the above type parameters, the options from Listen are prestent.

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.
listen: Listen

Configuration for the address to bind to.

extra_cfg: ExtraCfg

Arbitrary application specific configuration that doesn’t influence the created socket, but can be examined in the handlers.

Trait Implementations

impl<ExtraCfg: Clone> Clone for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: PartialEq> Comparable<UdpListen<ExtraCfg>> for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: Debug> Debug for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: Default> Default for UdpListen<ExtraCfg>[src]

impl<'de, ExtraCfg> Deserialize<'de> for UdpListen<ExtraCfg> where
    ExtraCfg: Deserialize<'de>, 
[src]

impl<ExtraCfg: Eq> Eq for UdpListen<ExtraCfg>[src]

impl<ExtraCfg> Fragment for UdpListen<ExtraCfg> where
    ExtraCfg: Clone + Debug + PartialEq
[src]

type Driver = CacheSimilar<Self>

The default driver to be used by the fragment. Read more

type Installer = ()

The default installer to be used unless a transformation or the user doesn’t provide one. Read more

type Seed = StdUdpSocket

The intermediate product if the fragment supports two-stage creation of Resources. If not, it can be set to (). Read more

type Resource = UdpSocket

The actual product this Fragment creates.

impl<ExtraCfg: Hash> Hash for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: Ord> Ord for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: PartialEq> PartialEq<UdpListen<ExtraCfg>> for UdpListen<ExtraCfg>[src]

impl<ExtraCfg: PartialOrd> PartialOrd<UdpListen<ExtraCfg>> for UdpListen<ExtraCfg>[src]

impl<ExtraCfg> Serialize for UdpListen<ExtraCfg> where
    ExtraCfg: Serialize
[src]

impl<ExtraCfg> Stackable for UdpListen<ExtraCfg>[src]

impl<ExtraCfg> StructDoc for UdpListen<ExtraCfg> where
    ExtraCfg: StructDoc
[src]

impl<ExtraCfg> StructuralEq for UdpListen<ExtraCfg>[src]

impl<ExtraCfg> StructuralPartialEq for UdpListen<ExtraCfg>[src]

Auto Trait Implementations

impl<ExtraCfg> RefUnwindSafe for UdpListen<ExtraCfg> where
    ExtraCfg: RefUnwindSafe

impl<ExtraCfg> Send for UdpListen<ExtraCfg> where
    ExtraCfg: Send

impl<ExtraCfg> Sync for UdpListen<ExtraCfg> where
    ExtraCfg: Sync

impl<ExtraCfg> Unpin for UdpListen<ExtraCfg> where
    ExtraCfg: Unpin

impl<ExtraCfg> UnwindSafe for UdpListen<ExtraCfg> where
    ExtraCfg: UnwindSafe

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<F> Optional for F where
    F: Stackable
[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.