Enum binary_stream::BinaryError
source · [−]pub enum BinaryError {
ReadPastEof,
InvalidChar,
TryFromInt(TryFromIntError),
Utf8Error(FromUtf8Error),
Io(Error),
TryFromSlice(TryFromSliceError),
Custom(String),
Boxed(Box<dyn Error + Send + Sync>),
}
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.
TryFromSlice(TryFromSliceError)
Error generated converting to slices.
Custom(String)
Custom error message.
Boxed(Box<dyn Error + Send + Sync>)
Generic error type for user space errors.
Trait Implementations
sourceimpl Debug for BinaryError
impl Debug for BinaryError
sourceimpl Display for BinaryError
impl Display for BinaryError
sourceimpl Error for BinaryError
impl Error for BinaryError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for BinaryError
impl From<Error> for BinaryError
sourceimpl From<FromUtf8Error> for BinaryError
impl From<FromUtf8Error> for BinaryError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for BinaryError
impl From<TryFromIntError> for BinaryError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for BinaryError
impl From<TryFromSliceError> for BinaryError
sourcefn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl !UnwindSafe for BinaryError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more