pub struct KeyNode {
pub parent: Offset,
/* private fields */
}
Expand description
represents a registry key node (as documented in https://github.com/msuhanov/regf/blob/master/Windows%20registry%20file%20format%20specification.md#key-node)
Fields
parent: Offset
Implementations
sourceimpl KeyNode
impl KeyNode
sourcepub fn timestamp(&self) -> &DateTime<Utc>
pub fn timestamp(&self) -> &DateTime<Utc>
Returns the time when this node has been written last.
sourcepub fn subkey_count(&self) -> u32
pub fn subkey_count(&self) -> u32
Returns the number of subkeys
sourcepub fn subkeys<B>(
&self,
hive: &mut Hive<B>
) -> BinResult<Ref<'_, Vec<Rc<RefCell<Self>>>>> where
B: BinReaderExt,
pub fn subkeys<B>(
&self,
hive: &mut Hive<B>
) -> BinResult<Ref<'_, Vec<Rc<RefCell<Self>>>>> where
B: BinReaderExt,
Returns a list of subkeys.
This function caches the subkeys, so the first call to this function might be slower.
Trait Implementations
sourceimpl BinRead for KeyNode
impl BinRead for KeyNode
type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
sourcefn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
Read the type from the reader
sourcefn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
fn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
Read the type from the reader while assuming no arguments have been passed Read more
sourcefn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
Read the type from the reader using the specified arguments
fn after_parse<R>(
&mut self,
&mut R,
&ReadOptions,
Self::Args
) -> Result<(), Error> where
R: Read + Seek,
sourceimpl From<KeyNodeWithMagic> for KeyNode
impl From<KeyNodeWithMagic> for KeyNode
sourcefn from(mkn: KeyNodeWithMagic) -> Self
fn from(mkn: KeyNodeWithMagic) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for KeyNode
impl !Send for KeyNode
impl !Sync for KeyNode
impl Unpin for KeyNode
impl !UnwindSafe for KeyNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more