pub enum CodeSpace {
Transport,
Application,
}Expand description
Which number space a QUIC error code belongs to.
Kept because the same integer means different things in each, and a report
that loses the space is one that cannot be read. Transport code 271 is
0x10F — inside the range TLS alerts are carried in. Application code 271
is a peer’s own close code and has nothing to do with TLS. Reading an alert
out of the second produces a finding that never happened, which is worse
than producing none.
Variants§
Transport
QUIC’s own transport errors, where TLS alerts arrive as 0x0100 | alert.
Application
The application’s close codes — over MoQT, a draft’s own error codes.
Trait Implementations§
impl Copy for CodeSpace
impl Eq for CodeSpace
impl StructuralPartialEq for CodeSpace
Auto Trait Implementations§
impl Freeze for CodeSpace
impl RefUnwindSafe for CodeSpace
impl Send for CodeSpace
impl Sync for CodeSpace
impl Unpin for CodeSpace
impl UnsafeUnpin for CodeSpace
impl UnwindSafe for CodeSpace
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