pub struct UDPMuxConnParams {
    pub local_addr: SocketAddr,
    pub key: String,
    pub udp_mux: Weak<dyn UDPMuxWriter + Send + Sync>,
}
Expand description

Parameters for a UDPMuxConn.

Fields

local_addr: SocketAddr

Local socket address.

key: String

Static key identifying the connection.

udp_mux: Weak<dyn UDPMuxWriter + Send + Sync>

A std::sync::Weak reference to the UDP mux.

NOTE: a non-owning reference should be used to prevent possible cycles.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.