Enum quiche::PathEvent

source ·
pub enum PathEvent {
    New(SocketAddrSocketAddr),
    Validated(SocketAddrSocketAddr),
    FailedValidation(SocketAddrSocketAddr),
    Closed(SocketAddrSocketAddr),
    ReusedSourceConnectionId(u64, (SocketAddr, SocketAddr), (SocketAddr, SocketAddr)),
    PeerMigrated(SocketAddrSocketAddr),
}
Expand description

A path-specific event.

Variants§

§

New(SocketAddrSocketAddr)

A new network path (local address, peer address) has been seen on a received packet. Note that this event is only triggered for servers, as the client is responsible from initiating new paths. The application may then probe this new path, if desired.

§

Validated(SocketAddrSocketAddr)

The related network path between local SocketAddr and peer SocketAddr has been validated.

§

FailedValidation(SocketAddrSocketAddr)

The related network path between local SocketAddr and peer SocketAddr failed to be validated. This network path will not be used anymore, unless the application requests probing this path again.

§

Closed(SocketAddrSocketAddr)

The related network path between local SocketAddr and peer SocketAddr has been closed and is now unusable on this connection.

§

ReusedSourceConnectionId(u64, (SocketAddr, SocketAddr), (SocketAddr, SocketAddr))

The stack observes that the Source Connection ID with the given sequence number, initially used by the peer over the first pair of SocketAddrs, is now reused over the second pair of SocketAddrs.

§

PeerMigrated(SocketAddrSocketAddr)

The connection observed that the peer migrated over the network path denoted by the pair of SocketAddr, i.e., non-probing packets have been received on this network path. This is a server side only event.

Note that this event is only raised if the path has been validated.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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
Compare self to key and return true if they are equal.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.