pub enum BinaryError {
ReadPastEof,
InvalidChar,
TryFromInt(TryFromIntError),
Utf8Error(FromUtf8Error),
Io(Error),
}
Expand description
Error generated reading and writing binary data.
Variants§
ReadPastEof
Error generated attempted to read past the end of file.
InvalidChar
Error generated trying to read the char type.
TryFromInt(TryFromIntError)
Error generated converting between integers.
Utf8Error(FromUtf8Error)
Error generated converting to UTF-8.
Io(Error)
Error generated by input / output.
Trait Implementations§
Source§impl Debug for BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
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 BinaryError
impl From<Error> for BinaryError
Source§impl From<FromUtf8Error> for BinaryError
impl From<FromUtf8Error> for BinaryError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for BinaryError
impl From<TryFromIntError> for BinaryError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryError
impl !RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl !UnwindSafe for BinaryError
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