pub enum StopReason {
Rejected,
Canceled,
UnknownEndpoint,
Unsupported,
LimitExceeded,
ShuttingDown,
Other(u64),
}Expand description
Why a peer refused to receive more payload, as carried by
STOP_SENDING’s QUIC application error code.
The transport maps the numeric code (weida_protocol::codes) onto this enum;
the core stays free of transport constants.
Variants§
Rejected
REJECTED: the application declined the transfer.
Canceled
CANCELED: the peer is no longer interested.
UnknownEndpoint
UNKNOWN_ENDPOINT: no endpoint is registered for the path.
Unsupported
UNSUPPORTED: the endpoint exists but does not serve this stream kind.
LimitExceeded
LIMIT_EXCEEDED: the endpoint is at a capacity bound — a paired
endpoint that already has its peer, for instance. A refusal of this
stream, not of the connection.
ShuttingDown
SHUTDOWN: the peer’s runtime has stopped admitting work — it is
draining or closing, and this stream arrived too late.
Other(u64)
Any other code, kept for diagnostics.
Trait Implementations§
Source§impl Clone for StopReason
impl Clone for StopReason
Source§fn clone(&self) -> StopReason
fn clone(&self) -> StopReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more