Skip to main content

RegistrySource

Struct RegistrySource 

Source
pub struct RegistrySource<'a> { /* private fields */ }
Expand description

A RegistrySource wraps borrowed per-user registry artifacts decoded by winreg-artifacts from an NTUSER.DAT / USRCLASS.DAT hive.

It normalizes the three published per-user artifacts: UserAssistAction::Executed, TypedURLsAction::Typed, and ShellBagsAction::Accessed (folder).

winreg-artifacts v0.1 publishes exactly these three per-user decoders; it has no separate RecentDocs / RunMRU / MountPoints2 / TypedPaths modules, so the adapter maps the artifacts that actually exist.

Implementations§

Source§

impl<'a> RegistrySource<'a>

Source

pub fn new( userassist: &'a [UserAssistEntry], typed_urls: &'a [TypedUrl], shellbags: &'a [ShellbagEntry], actor: Option<&str>, ) -> Self

Wrap decoded registry artifacts, attributing them to a user when known (the hive owner — the SID/account the NTUSER.DAT belongs to).

Trait Implementations§

Source§

impl ActivitySource for RegistrySource<'_>

Source§

fn activities(&self) -> Vec<UserActivity>

The activities this source contributes to the timeline.

Auto Trait Implementations§

§

impl<'a> Freeze for RegistrySource<'a>

§

impl<'a> RefUnwindSafe for RegistrySource<'a>

§

impl<'a> Send for RegistrySource<'a>

§

impl<'a> Sync for RegistrySource<'a>

§

impl<'a> Unpin for RegistrySource<'a>

§

impl<'a> UnsafeUnpin for RegistrySource<'a>

§

impl<'a> UnwindSafe for RegistrySource<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.