pub enum Error<Type: Debug + Into<u8> + Copy> {
MissingType,
MissingData(Type),
UnrecognizedType(String, u8),
LengthOutOfRange(u8, Type, RangeInclusive<u8>),
TypeFailedToDecode(Type, Error),
}
Variants§
MissingType
MissingData(Type)
UnrecognizedType(String, u8)
LengthOutOfRange(u8, Type, RangeInclusive<u8>)
TypeFailedToDecode(Type, Error)
Implementations§
Trait Implementations§
Source§impl<Type: Debug + Into<u8> + Copy> Error for Error<Type>
impl<Type: Debug + Into<u8> + Copy> Error for Error<Type>
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()
impl<Type: Debug + Into<u8> + Copy> StructuralPartialEq for Error<Type>
Auto Trait Implementations§
impl<Type> Freeze for Error<Type>where
Type: Freeze,
impl<Type> RefUnwindSafe for Error<Type>where
Type: RefUnwindSafe,
impl<Type> Send for Error<Type>where
Type: Send,
impl<Type> Sync for Error<Type>where
Type: Sync,
impl<Type> Unpin for Error<Type>where
Type: Unpin,
impl<Type> UnwindSafe for Error<Type>where
Type: UnwindSafe,
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