logo
pub enum Event<Req, Res, CRes = Res> {
    Event(RequestResponseEvent<Req, Res, CRes>),
    TooManyInboundRequests(PeerId),
    ResumeSending(PeerId),
}
Expand description

A Wrapper around RequestResponseEvent.

Variants

Event(RequestResponseEvent<Req, Res, CRes>)

A regular request-response event.

TooManyInboundRequests(PeerId)

We received more inbound requests than allowed.

ResumeSending(PeerId)

When previously reaching the send limit of a peer, this event is eventually emitted when sending is allowed to resume.

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.