#[non_exhaustive]pub enum SlowDataError {
ZeroLength,
LengthOverflow {
got: usize,
},
BufferOverflow,
}Expand description
Slow data assembly errors.
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.
ZeroLength
Block length byte (low nibble of byte 0) is zero.
LengthOverflow
Block length exceeds the buffer capacity (max 18 bytes after the type byte).
BufferOverflow
Buffer for the assembler ran out of room — should not happen in well-formed input.
Trait Implementations§
Source§impl Clone for SlowDataError
impl Clone for SlowDataError
Source§fn clone(&self) -> SlowDataError
fn clone(&self) -> SlowDataError
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 moreSource§impl Debug for SlowDataError
impl Debug for SlowDataError
Source§impl Display for SlowDataError
impl Display for SlowDataError
Source§impl Error for SlowDataError
impl Error for SlowDataError
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 SlowDataError
impl PartialEq for SlowDataError
impl Eq for SlowDataError
impl StructuralPartialEq for SlowDataError
Auto Trait Implementations§
impl Freeze for SlowDataError
impl RefUnwindSafe for SlowDataError
impl Send for SlowDataError
impl Sync for SlowDataError
impl Unpin for SlowDataError
impl UnwindSafe for SlowDataError
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