Enum binate::frame::DecodeError [−][src]
#[non_exhaustive] pub enum DecodeError { InComplete, UnrecognizedFrameType(u16), InvalidStreamId { expected: &'static str, found: u32, }, }
This is supported on crate feature
frame
only.Expand description
Errors that can occur when decoding bytes into a specific frame failed.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Not enough data is available to parse a frame.
UnrecognizedFrameType(u16)
The decoded frame type is unrecognized.
The decoded stream ID is invalid.
Show fields
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
Mutably borrows from an owned value. Read more