Type Alias libp2p_swarm::handler::ConnectionHandlerUpgrErr

source ·
pub type ConnectionHandlerUpgrErr<TUpgrErr> = StreamUpgradeError<TUpgrErr>;
👎Deprecated: Renamed to StreamUpgradeError

Aliased Type§

enum ConnectionHandlerUpgrErr<TUpgrErr> {
    Timeout,
    Apply(TUpgrErr),
    NegotiationFailed,
    Io(Error),
}

Variants§

§

Timeout

The opening attempt timed out before the negotiation was fully completed.

§

Apply(TUpgrErr)

The upgrade produced an error.

§

NegotiationFailed

No protocol could be agreed upon.

§

Io(Error)

An IO or otherwise unrecoverable error happened.