pub struct Manager<Config: Config> { /* private fields */ }
Expand description

The PathManager handles paths for a specific connection. It will handle path validation operations, and track the active path for a connection.

Implementations

Return the active path

Return a mutable reference to the active path

Return the Id of the active path

Returns the Path for the provided address if the PathManager knows about it

Returns the Path for the provided address if the PathManager knows about it

Returns an iterator over all paths pending path_challenge or path_response transmission.

Called when a datagram is received on a connection Upon success, returns a (Id, bool) containing the path ID and a boolean that is true if the path had been amplification limited prior to receiving the datagram and is now no longer amplification limited.

This function is called prior to packet authentication. If possible add business logic to Self::on_processed_packet, which is called after the packet has been authenticated.

Returns true if a valid initial packet has been received

Writes any frames the path manager wishes to transmit to the given context

Called when packets are acknowledged

Called when packets are lost

Process a packet and update internal state.

Check if the packet is a non-probing (path validation) packet and attempt to update the active path for the connection.

Called when a NEW_CONNECTION_ID frame is received from the peer

Notifies the path manager of the connection closing event

true if ALL paths are amplification_limited

true if ANY of the paths can transmit

Returns the maximum size the UDP payload can reach for any probe packet.

Trait Implementations

Formats the value using the given formatter. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Notifies the query of any timers owned by the provider Read more

Returns the next Timestamp at which the earliest timer is armed in the provider

Returns true if there are any timers armed

Counts the number of armed timers in the provider

Iterates over each timer in the provider and calls the provided function

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.

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.