pub enum StatusCodeValidationError {
InvalidSeverity,
UsedReservedBit,
UnknownSubCode,
InvalidInfoBits,
}Expand description
Error returned on status code validation failure.
Variants§
InvalidSeverity
Severity is the reserved value 0b11
UsedReservedBit
Used one of the reserved bits 5, 6, 11, 12, 13, 28, or 29
UnknownSubCode
Sub code is not recognized
InvalidInfoBits
Info type is 0, but info bits are non-zero.
Trait Implementations§
Source§impl Clone for StatusCodeValidationError
impl Clone for StatusCodeValidationError
Source§fn clone(&self) -> StatusCodeValidationError
fn clone(&self) -> StatusCodeValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StatusCodeValidationError
impl RefUnwindSafe for StatusCodeValidationError
impl Send for StatusCodeValidationError
impl Sync for StatusCodeValidationError
impl Unpin for StatusCodeValidationError
impl UnwindSafe for StatusCodeValidationError
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