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

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

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)

This struct is marked as 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Compares two fragments.

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

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

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

The actual product this Fragment creates.

Runs the first stage of creation. Read more

Runs the second stage of creation. Read more

Configuration if the pipeline should be run once even before the config is loaded. Read more

Runs both stages of creation at once. Read more

An initialization routine. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Returns the documentation for the type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Turns self into the result.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.