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
Trying to set an error on n/v list that already has error
No value found for given name.
Library failed to allocate.
Io(Error)
Other IO errors
Tuple Fields of Io
0: Error
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