Enum libnv::NvError[][src]

pub enum NvError {
    InvalidString(NulError),
    NativeError(i32),
    AlreadySet,
    NotFound,
    OutOfMemory,
    Io(Error),
    OperationNotSupported,
    InvalidStringEncoding(Utf8Error),
}
Expand description

Error kinds for Name/Value library.

Variants

InvalidString(NulError)

Name a.k.a. key can’t contain NULL byte. You going to get this error if you try so.

Tuple Fields of InvalidString

0: NulError
NativeError(i32)

error return by ffi. See libc for more information.

Tuple Fields of NativeError

0: i32
AlreadySet

Trying to set an error on n/v list that already has error

NotFound

No value found for given name.

OutOfMemory

Library failed to allocate.

Io(Error)

Other IO errors

Tuple Fields of Io

0: Error
OperationNotSupported

Operation not support on a list given flags used to create the list.

InvalidStringEncoding(Utf8Error)

Got non-utf8 string from the library.

Tuple Fields of InvalidStringEncoding

0: Utf8Error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.