[]Enum bin_io::error::BinError

pub enum BinError {
    Utf8Conversion(FromUtf8Error),
    Utf16Conversion(FromUtf16Error),
    CheckFail,
    CastFail,
}

Error type used internally by bin_io.

Remarks

Keep in mind that for convenience this is always casted to a std::io::Error. So it's unlikely that you'll ever have to work with it directly.

Variants

Utf8Conversion(FromUtf8Error)Utf16Conversion(FromUtf16Error)CheckFailCastFail

Trait Implementations

impl From<FromUtf8Error> for BinError

impl From<FromUtf16Error> for BinError

impl From<BinError> for Error[src]

impl Display for BinError

impl Debug for BinError[src]

impl Error for BinError

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]