#[repr(u8)]pub enum ErrorClass {
Transport = 1,
Crypto = 2,
State = 3,
Policy = 4,
Schema = 5,
Authz = 6,
}Expand description
Coarse classification of an error. Single byte on the wire.
Variants§
Transport = 1
0x01 — transport (QUIC / TLS).
Crypto = 2
0x02 — cryptography (AEAD / MLS).
State = 3
0x03 — state (epoch / transition).
Policy = 4
0x04 — policy (replay / quota).
Schema = 5
0x05 — schema (CBOR shape, length validation).
Authz = 6
0x06 — authorisation (roles, GSP).
Trait Implementations§
Source§impl Clone for ErrorClass
impl Clone for ErrorClass
Source§fn clone(&self) -> ErrorClass
fn clone(&self) -> ErrorClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorClass
impl Debug for ErrorClass
Source§impl Hash for ErrorClass
impl Hash for ErrorClass
Source§impl PartialEq for ErrorClass
impl PartialEq for ErrorClass
Source§fn eq(&self, other: &ErrorClass) -> bool
fn eq(&self, other: &ErrorClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for ErrorClass
impl TryFrom<u8> for ErrorClass
impl Copy for ErrorClass
impl Eq for ErrorClass
impl StructuralPartialEq for ErrorClass
Auto Trait Implementations§
impl Freeze for ErrorClass
impl RefUnwindSafe for ErrorClass
impl Send for ErrorClass
impl Sync for ErrorClass
impl Unpin for ErrorClass
impl UnsafeUnpin for ErrorClass
impl UnwindSafe for ErrorClass
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
Mutably borrows from an owned value. Read more