logo
pub enum Event {
    ReservationReqAccepted {
        relay_peer_id: PeerId,
        renewal: bool,
        limit: Option<Limit>,
    },
    ReservationReqFailed {
        relay_peer_id: PeerId,
        renewal: bool,
        error: ConnectionHandlerUpgrErr<ReservationFailedReason>,
    },
    OutboundCircuitEstablished {
        relay_peer_id: PeerId,
        limit: Option<Limit>,
    },
    OutboundCircuitReqFailed {
        relay_peer_id: PeerId,
        error: ConnectionHandlerUpgrErr<CircuitFailedReason>,
    },
    InboundCircuitEstablished {
        src_peer_id: PeerId,
        limit: Option<Limit>,
    },
    InboundCircuitReqFailed {
        relay_peer_id: PeerId,
        error: ConnectionHandlerUpgrErr<Void>,
    },
    InboundCircuitReqDenied {
        src_peer_id: PeerId,
    },
    InboundCircuitReqDenyFailed {
        src_peer_id: PeerId,
        error: Error,
    },
}
Expand description

The events produced by the Client behaviour.

Variants

ReservationReqAccepted

Fields

relay_peer_id: PeerId
renewal: bool

Indicates whether the request replaces an existing reservation.

limit: Option<Limit>

An outbound reservation has been accepted.

ReservationReqFailed

Fields

relay_peer_id: PeerId
renewal: bool

Indicates whether the request replaces an existing reservation.

error: ConnectionHandlerUpgrErr<ReservationFailedReason>

OutboundCircuitEstablished

Fields

relay_peer_id: PeerId
limit: Option<Limit>

OutboundCircuitReqFailed

Fields

relay_peer_id: PeerId
error: ConnectionHandlerUpgrErr<CircuitFailedReason>

InboundCircuitEstablished

Fields

src_peer_id: PeerId
limit: Option<Limit>

An inbound circuit has been established.

InboundCircuitReqFailed

Fields

relay_peer_id: PeerId

InboundCircuitReqDenied

Fields

src_peer_id: PeerId

An inbound circuit request has been denied.

InboundCircuitReqDenyFailed

Fields

src_peer_id: PeerId
error: Error

Denying an inbound circuit request failed.

Trait Implementations

Formats the value using the given formatter. Read more

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.

Should always be Self

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.