pub enum NotARequest {
Empty,
Tag(u8),
TooShort {
len: usize,
},
}Expand description
Why a frame’s payload is not a request: see split_request.
Variants§
Empty
An empty payload: no tag at all.
Tag(u8)
A tag other than TAG_REQUEST.
TooShort
A request tag with fewer bytes behind it than an ID: len is the
payload’s length, tag included.
Trait Implementations§
Source§impl Clone for NotARequest
impl Clone for NotARequest
impl Copy for NotARequest
Source§impl Debug for NotARequest
impl Debug for NotARequest
Source§impl Display for NotARequest
impl Display for NotARequest
impl Eq for NotARequest
Source§impl Error for NotARequest
impl Error for NotARequest
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NotARequest
impl PartialEq for NotARequest
impl StructuralPartialEq for NotARequest
Auto Trait Implementations§
impl Freeze for NotARequest
impl RefUnwindSafe for NotARequest
impl Send for NotARequest
impl Sync for NotARequest
impl Unpin for NotARequest
impl UnsafeUnpin for NotARequest
impl UnwindSafe for NotARequest
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