pub struct SrumSource<'a> { /* private fields */ }Expand description
A SrumSource wraps borrowed SRUM network-usage and app-usage records plus
the SruDbIdMapTable that resolves their integer user_id / app_id foreign
keys to user SIDs and application paths.
SRUM is the first source that attributes activity to a specific user: each
row becomes an Action::Executed UserActivity whose actor is the
resolved user SID. Network rows additionally carry the per-interval byte volume
in detail, sharpening the exfiltration lens.
Implementations§
Source§impl<'a> SrumSource<'a>
impl<'a> SrumSource<'a>
Sourcepub fn new(
network: &'a [NetworkUsageRecord],
app_usage: &'a [AppUsageRecord],
id_map: &'a [IdMapEntry],
) -> Self
pub fn new( network: &'a [NetworkUsageRecord], app_usage: &'a [AppUsageRecord], id_map: &'a [IdMapEntry], ) -> Self
Wrap decoded SRUM records with the id-map needed to resolve users and apps.
Trait Implementations§
Source§impl ActivitySource for SrumSource<'_>
impl ActivitySource for SrumSource<'_>
Source§fn activities(&self) -> Vec<UserActivity>
fn activities(&self) -> Vec<UserActivity>
The activities this source contributes to the timeline.
Auto Trait Implementations§
impl<'a> Freeze for SrumSource<'a>
impl<'a> RefUnwindSafe for SrumSource<'a>
impl<'a> Send for SrumSource<'a>
impl<'a> Sync for SrumSource<'a>
impl<'a> Unpin for SrumSource<'a>
impl<'a> UnsafeUnpin for SrumSource<'a>
impl<'a> UnwindSafe for SrumSource<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more