Struct nt_hive::Hive [−][src]
Root structure describing a registry hive.
Implementations
impl<B> Hive<B> where
B: ByteSlice,
[src]
B: ByteSlice,
pub fn new(bytes: B) -> Result<Self>
[src]
Creates a new Hive
from any byte slice.
Performs basic validation and rejects any invalid hive.
pub fn major_version(&self) -> u32
[src]
Returns the major version of this hive.
The only known value is 1
.
pub fn minor_version(&self) -> u32
[src]
Returns the minor version of this hive.
You can feed this value to HiveMinorVersion::n
to find out whether this is a known version.
pub fn root_key_node(&self) -> Result<KeyNode<&Self, B>>
[src]
Returns the root KeyNode
of this hive.
impl<B> Hive<B> where
B: ByteSliceMut,
[src]
B: ByteSliceMut,
pub fn clear_volatile_subkeys(&mut self) -> Result<()>
[src]
Clears the volatile_subkey_count
field of all key nodes recursively.
This needs to be done before passing the hive to an NT kernel during boot. See https://github.com/reactos/reactos/pull/1883 for more information.
Auto Trait Implementations
impl<B> RefUnwindSafe for Hive<B> where
B: RefUnwindSafe,
[src]
B: RefUnwindSafe,
impl<B> Send for Hive<B> where
B: Send,
[src]
B: Send,
impl<B> Sync for Hive<B> where
B: Sync,
[src]
B: Sync,
impl<B> Unpin for Hive<B> where
B: Unpin,
[src]
B: Unpin,
impl<B> UnwindSafe for Hive<B> where
B: UnwindSafe,
[src]
B: 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, 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>,