pub enum LengthError {
DataTooBig,
ZeroLength,
Truncated,
}Expand description
An error that resulted from improper item encoding.
Variants§
DataTooBig
The data length was too big for this item.
ZeroLength
A data length of zero is not allowed in this item.
Truncated
Ran out of bytes trying to decode this item.
Trait Implementations§
Source§impl Clone for LengthError
impl Clone for LengthError
Source§fn clone(&self) -> LengthError
fn clone(&self) -> LengthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LengthError
impl Debug for LengthError
Source§impl Display for LengthError
impl Display for LengthError
Source§impl Error for LengthError
impl Error for LengthError
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()
Auto Trait Implementations§
impl Freeze for LengthError
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnsafeUnpin for LengthError
impl UnwindSafe for LengthError
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