Skip to main content

LifecycleEvent

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: TupleEndpointInfo

Local endpoint address and initial connection ID.

§remote: TupleEndpointInfo

Remote endpoint address and initial connection ID.

§

StateUpdated

The connection entered a new lifecycle state.

Fields

§old: Option<ConnectionState>

Previous lifecycle state, when known.

§new: ConnectionState

Newly entered lifecycle state.

§

Closed(ConnectionClosedView<'static>)

Connection closure and its diagnostic details.