pub enum NvError {
ValueReadFailed {
pair_name: String,
type_code: data_type_t,
errno: i32,
},
NullPointer {
pair_name: String,
type_code: data_type_t,
},
NullName,
}Expand description
Error returned when reading an nvpair value fails.
Variants§
ValueReadFailed
A nvpair_value_* C function returned a non-zero error code.
NullPointer
A C function returned a null pointer where a valid one was required.
NullName
nvpair_name returned a null pointer for a pair.
Trait Implementations§
Source§impl Error for NvError
impl Error for NvError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for NvError
Auto Trait Implementations§
impl Freeze for NvError
impl RefUnwindSafe for NvError
impl Send for NvError
impl Sync for NvError
impl Unpin for NvError
impl UnsafeUnpin for NvError
impl UnwindSafe for NvError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more