Struct nt_hive::KeyValue[][src]

pub struct KeyValue<H: Deref<Target = Hive<B>>, B: ByteSlice> { /* fields omitted */ }

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]

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]

Checks if this is a REG_MULTI_SZ Key Value and returns the data as a Vec of Strings in that case.

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]

impl<B> PartialEq<KeyValue<&'_ Hive<B>, B>> for KeyValue<&Hive<B>, B> where
    B: ByteSlice
[src]

Auto Trait Implementations

impl<H, B> RefUnwindSafe for KeyValue<H, B> where
    H: RefUnwindSafe
[src]

impl<H, B> Send for KeyValue<H, B> where
    H: Send
[src]

impl<H, B> Sync for KeyValue<H, B> where
    H: Sync
[src]

impl<H, B> Unpin for KeyValue<H, B> where
    H: Unpin
[src]

impl<H, B> UnwindSafe for KeyValue<H, B> where
    H: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.