pub enum NvValue {
Show 28 variants
Boolean,
BooleanValue(bool),
Byte(u8),
Int8(i8),
UInt8(u8),
Int16(i16),
UInt16(u16),
Int32(i32),
UInt32(u32),
Int64(i64),
UInt64(u64),
Double(f64),
String(String),
Hrtime(i64),
NvList(NvList),
BooleanArray(Vec<bool>),
ByteArray(Vec<u8>),
Int8Array(Vec<i8>),
UInt8Array(Vec<u8>),
Int16Array(Vec<i16>),
UInt16Array(Vec<u16>),
Int32Array(Vec<i32>),
UInt32Array(Vec<u32>),
Int64Array(Vec<i64>),
UInt64Array(Vec<u64>),
StringArray(Vec<String>),
NvListArray(Vec<NvList>),
Unknown {
type_code: i32,
},
}Expand description
A value from an nvlist pair.
Variants§
Boolean
A valueless boolean (presence indicates true).
BooleanValue(bool)
A boolean with an explicit value.
Byte(u8)
Int8(i8)
UInt8(u8)
Int16(i16)
UInt16(u16)
Int32(i32)
UInt32(u32)
Int64(i64)
UInt64(u64)
Double(f64)
String(String)
Hrtime(i64)
High-resolution time in nanoseconds.
NvList(NvList)
BooleanArray(Vec<bool>)
ByteArray(Vec<u8>)
Int8Array(Vec<i8>)
UInt8Array(Vec<u8>)
Int16Array(Vec<i16>)
UInt16Array(Vec<u16>)
Int32Array(Vec<i32>)
UInt32Array(Vec<u32>)
Int64Array(Vec<i64>)
UInt64Array(Vec<u64>)
StringArray(Vec<String>)
NvListArray(Vec<NvList>)
Unknown
A type not recognized by this crate.
Trait Implementations§
impl StructuralPartialEq for NvValue
Auto Trait Implementations§
impl Freeze for NvValue
impl RefUnwindSafe for NvValue
impl Send for NvValue
impl Sync for NvValue
impl Unpin for NvValue
impl UnsafeUnpin for NvValue
impl UnwindSafe for NvValue
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