pub enum ReadSliceError {
IoError(Error),
InsufficientData,
}
Variants§
Trait Implementations§
Source§impl Debug for ReadSliceError
impl Debug for ReadSliceError
Source§impl Display for ReadSliceError
impl Display for ReadSliceError
Source§impl Error for ReadSliceError
impl Error for ReadSliceError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<ReadSliceError> for DecodeError
impl From<ReadSliceError> for DecodeError
Source§fn from(e: ReadSliceError) -> DecodeError
fn from(e: ReadSliceError) -> DecodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReadSliceError
impl !RefUnwindSafe for ReadSliceError
impl Send for ReadSliceError
impl Sync for ReadSliceError
impl Unpin for ReadSliceError
impl !UnwindSafe for ReadSliceError
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