pub enum SizedError {
Reader(ReadError),
NotEnoughWords(NotEnoughWords),
}Expand description
A general-use error for types with a known size in words.
Variants§
Reader(ReadError)
The Read implementation returned an error.
NotEnoughWords(NotEnoughWords)
Failed to read enough bytes from the reader.
Trait Implementations§
Source§impl Debug for SizedError
impl Debug for SizedError
Source§impl Display for SizedError
impl Display for SizedError
Source§impl Error for SizedError
impl Error for SizedError
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<NotEnoughWords> for SizedError
impl From<NotEnoughWords> for SizedError
Source§fn from(source: NotEnoughWords) -> Self
fn from(source: NotEnoughWords) -> Self
Converts to this type from the input type.
Source§impl From<ReadError> for SizedError
impl From<ReadError> for SizedError
Source§impl From<SizedError> for BoolError
impl From<SizedError> for BoolError
Source§fn from(source: SizedError) -> Self
fn from(source: SizedError) -> Self
Converts to this type from the input type.
Source§impl FromReadError for SizedError
impl FromReadError for SizedError
Source§fn from_read_error<E: Debug + Display>(err: E) -> Self
fn from_read_error<E: Debug + Display>(err: E) -> Self
Forward an error produced by the
Reader.Auto Trait Implementations§
impl Freeze for SizedError
impl RefUnwindSafe for SizedError
impl Send for SizedError
impl Sync for SizedError
impl Unpin for SizedError
impl UnwindSafe for SizedError
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