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§
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)>
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.
source§impl From<TryFromSliceError> for BinaryError
impl From<TryFromSliceError> for BinaryError
source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.