Struct s2n_quic::connection::error::Code
source · pub struct Code(/* private fields */);
Implementations§
source§impl Code
impl Code
sourcepub const NO_ERROR: Code = _
pub const NO_ERROR: Code = _
An endpoint uses this with CONNECTION_CLOSE to signal that the connection is being closed abruptly in the absence of any error
sourcepub const INTERNAL_ERROR: Code = _
pub const INTERNAL_ERROR: Code = _
The endpoint encountered an internal error and cannot continue with the connection.
sourcepub const CONNECTION_REFUSED: Code = _
pub const CONNECTION_REFUSED: Code = _
The server refused to accept a new connection.
sourcepub const FLOW_CONTROL_ERROR: Code = _
pub const FLOW_CONTROL_ERROR: Code = _
An endpoint received more data than it permitted in its advertised data limits.
sourcepub const STREAM_LIMIT_ERROR: Code = _
pub const STREAM_LIMIT_ERROR: Code = _
An endpoint received a frame for a stream identifier that exceeded its advertised stream limit for the corresponding stream type.
sourcepub const STREAM_STATE_ERROR: Code = _
pub const STREAM_STATE_ERROR: Code = _
An endpoint received a frame for a stream that was not in a state that permitted that frame.
sourcepub const FINAL_SIZE_ERROR: Code = _
pub const FINAL_SIZE_ERROR: Code = _
An endpoint received a STREAM frame containing data that exceeded the previously established final size.
sourcepub const FRAME_ENCODING_ERROR: Code = _
pub const FRAME_ENCODING_ERROR: Code = _
An endpoint received a frame that was badly formatted.
sourcepub const TRANSPORT_PARAMETER_ERROR: Code = _
pub const TRANSPORT_PARAMETER_ERROR: Code = _
An endpoint received transport parameters that were badly formatted.
sourcepub const CONNECTION_ID_LIMIT_ERROR: Code = _
pub const CONNECTION_ID_LIMIT_ERROR: Code = _
The number of connection IDs provided by the peer exceeds the advertised active_connection_id_limit.
sourcepub const PROTOCOL_VIOLATION: Code = _
pub const PROTOCOL_VIOLATION: Code = _
An endpoint detected an error with protocol compliance that was not covered by more specific error codes.
sourcepub const INVALID_TOKEN: Code = _
pub const INVALID_TOKEN: Code = _
A server received a client Initial that contained an invalid Token field.
sourcepub const APPLICATION_ERROR: Code = _
pub const APPLICATION_ERROR: Code = _
The application or application protocol caused the connection to be closed.
sourcepub const CRYPTO_BUFFER_EXCEEDED: Code = _
pub const CRYPTO_BUFFER_EXCEEDED: Code = _
An endpoint has received more data in CRYPTO frames than it can buffer.
sourcepub const KEY_UPDATE_ERROR: Code = _
pub const KEY_UPDATE_ERROR: Code = _
An endpoint detected errors in performing key updates.
sourcepub const AEAD_LIMIT_REACHED: Code = _
pub const AEAD_LIMIT_REACHED: Code = _
An endpoint has reached the confidentiality or integrity limit for the AEAD algorithm used by the given connection.
pub fn description(&self) -> Option<&'static str>
Trait Implementations§
source§impl Ord for Code
impl Ord for Code
source§impl PartialEq for Code
impl PartialEq for Code
source§impl PartialOrd for Code
impl PartialOrd for Code
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more