[][src]Enum libcryptsetup_rs::LibcryptErr

pub enum LibcryptErr {
    IOError(Error),
    UuidError(ParseError),
    NullError(NulError),
    Utf8Error(Utf8Error),
    JsonError(Error),
    InvalidConversion,
    NullPtr,
    NoNull(&'static str),
    Other(String),
}

Error returned from any libcryptsetup-rs function

Variants

IOError(Error)

Wrapper for io::Error

UuidError(ParseError)

Wrapper for uuid::parser::ParseError

NullError(NulError)

Wrapper for ffi::NulError

Utf8Error(Utf8Error)

Wrapper for str::Utf8Error

JsonError(Error)

Wrapper for serde_json::Error

InvalidConversion

Indicates that a Rust/C conversion was unsuccessful

NullPtr

Indicates that a pointer returned was null signifying an error

NoNull(&'static str)

Indicates that a &'static str was not created with c_str!() macro

Other(String)

Custom message

Trait Implementations

impl Debug for LibcryptErr[src]

impl Display for LibcryptErr[src]

impl Error for LibcryptErr[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.