Type Alias LifecycleEvent
pub type LifecycleEvent = LifecycleEventView<'static>;Available on crate features
quic and std only.Expand description
Lifecycle event with owned or static backing storage.
Aliased Type§
pub enum LifecycleEvent {
Started {
local: TupleEndpointInfo,
remote: TupleEndpointInfo,
},
StateUpdated {
old: Option<ConnectionState>,
new: ConnectionState,
},
Closed(ConnectionClosedView<'static>),
}Variants§
Started
A connection began on the reported endpoints.
Fields
§
local: TupleEndpointInfoLocal endpoint address and initial connection ID.
§
remote: TupleEndpointInfoRemote endpoint address and initial connection ID.
StateUpdated
The connection entered a new lifecycle state.
Fields
§
old: Option<ConnectionState>Previous lifecycle state, when known.
§
new: ConnectionStateNewly entered lifecycle state.
Closed(ConnectionClosedView<'static>)
Connection closure and its diagnostic details.