Struct nt_hive::KeyValue [−][src]
A single value that belongs to a KeyNode
.
It has a name and attached data.
On-Disk Signature: vk
Implementations
impl<H, B> KeyValue<H, B> where
H: Deref<Target = Hive<B>>,
B: ByteSlice,
[src]
H: Deref<Target = Hive<B>>,
B: ByteSlice,
pub fn data(&self) -> Result<KeyValueData<'_, B>>
[src]
Returns the raw data bytes as KeyValueData
.
pub fn string_data(&self) -> Result<String>
[src]
Checks if this is a REG_SZ
or REG_EXPAND_SZ
Key Value
and returns the data as a String
in that case.
pub fn dword_data(&self) -> Result<u32>
[src]
Checks if this is a REG_DWORD
or REG_DWORD_BIG_ENDIAN
Key Value
and returns the data as a u32
in that case.
pub fn multi_string_data(&self) -> Result<Vec<String>>
[src]
pub fn qword_data(&self) -> Result<u64>
[src]
Checks if this is a REG_QWORD
Key Value
and returns the data as a u64
in that case.
pub fn data_size(&self) -> u32
[src]
Returns the size of the raw data.
pub fn data_type(&self) -> Result<KeyValueDataType>
[src]
Returns the data type of this Key Value.
pub fn name(&self) -> Result<NtHiveNameString<'_>>
[src]
Returns the name of this Key Value.
Trait Implementations
impl<H: Clone + Deref<Target = Hive<B>>, B: Clone + ByteSlice> Clone for KeyValue<H, B>
[src]
impl<B> Eq for KeyValue<&Hive<B>, B> where
B: ByteSlice,
[src]
B: ByteSlice,
impl<B> PartialEq<KeyValue<&'_ Hive<B>, B>> for KeyValue<&Hive<B>, B> where
B: ByteSlice,
[src]
B: ByteSlice,
Auto Trait Implementations
impl<H, B> RefUnwindSafe for KeyValue<H, B> where
H: RefUnwindSafe,
[src]
H: RefUnwindSafe,
impl<H, B> Send for KeyValue<H, B> where
H: Send,
[src]
H: Send,
impl<H, B> Sync for KeyValue<H, B> where
H: Sync,
[src]
H: Sync,
impl<H, B> Unpin for KeyValue<H, B> where
H: Unpin,
[src]
H: Unpin,
impl<H, B> UnwindSafe for KeyValue<H, B> where
H: UnwindSafe,
[src]
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,