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 PartialOrd for Code
impl PartialOrd for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.