pub enum BadRefusal {
Truncated,
UnknownKind(u8),
ReasonLength {
declared: usize,
available: usize,
},
ReasonNotUtf8,
}Expand description
Why a payload under TAG_REFUSED is not a Refused frame.
Variants§
Truncated
Too short for the ID, the kind and the reason’s length.
UnknownKind(u8)
The kind byte names no RefusalKind.
ReasonLength
The reason’s length does not match the bytes the frame has after
it: declared against available.
ReasonNotUtf8
The reason is not UTF-8.
Trait Implementations§
Source§impl Clone for BadRefusal
impl Clone for BadRefusal
impl Copy for BadRefusal
Source§impl Debug for BadRefusal
impl Debug for BadRefusal
Source§impl Display for BadRefusal
impl Display for BadRefusal
impl Eq for BadRefusal
Source§impl PartialEq for BadRefusal
impl PartialEq for BadRefusal
impl StructuralPartialEq for BadRefusal
Auto Trait Implementations§
impl Freeze for BadRefusal
impl RefUnwindSafe for BadRefusal
impl Send for BadRefusal
impl Sync for BadRefusal
impl Unpin for BadRefusal
impl UnsafeUnpin for BadRefusal
impl UnwindSafe for BadRefusal
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