pub enum DataDecodeError {
IO(Error),
InvalidData(InvalidDataError),
}
Expand description
Indicates that an error occured while decoding the data.
Variants§
IO(Error)
An error occured while trying to read the data.
InvalidData(InvalidDataError)
The value of the data itself led to an error.
Trait Implementations§
Source§impl Debug for DataDecodeError
impl Debug for DataDecodeError
Source§impl Display for DataDecodeError
impl Display for DataDecodeError
Source§impl Error for DataDecodeError
impl Error for DataDecodeError
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 From<Error> for DataDecodeError
impl From<Error> for DataDecodeError
Source§impl From<InvalidDataError> for DataDecodeError
impl From<InvalidDataError> for DataDecodeError
Source§fn from(source: InvalidDataError) -> Self
fn from(source: InvalidDataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataDecodeError
impl !RefUnwindSafe for DataDecodeError
impl Send for DataDecodeError
impl Sync for DataDecodeError
impl Unpin for DataDecodeError
impl !UnwindSafe for DataDecodeError
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