Skip to main content

VolatilityClass

Enum VolatilityClass 

Source
#[non_exhaustive]
pub enum VolatilityClass { Residual = 0, Persistent = 1, ActivityDriven = 2, RotatingBuffer = 3, Volatile = 4, }
Expand description

Acquisition urgency for a forensic artifact under RFC 3227 Order of Volatility.

Values run from 0 (lowest urgency / most stable) to 4 (highest urgency / most ephemeral). acquisition_order (umbrella crate) returns artifacts sorted 4→0 (most ephemeral first), matching live-response triage practice.

§Choosing the right class

ClassCollect whenRationale
VolatileImmediately — before rebootOnly in RAM
RotatingBufferBefore buffer fillsFixed-size circular store
ActivityDrivenBefore more user activityOverwritten by normal use
PersistentStandard scheduled collectionPresent until explicit deletion
ResidualLast — always present on a live volumeStorage-level structure

§What Residual means — and what it does NOT mean

Residual is the lowest acquisition urgency class. Use it only for artifacts that are structurally present on any live mounted volume and cannot be destroyed by normal system operation (only by reformatting, physical destruction, or deliberate forensic manipulation). The canonical example is $MFT — any mounted NTFS volume always has an MFT; it is the last artifact you need to rush to collect.

Residual does NOT mean “recoverable via .LOG1/.LOG2, VSS, or $UsnJrnl after deletion.” That property applies to virtually every NTFS artifact and provides no discrimination between classes. A registry key that could be recovered from a transaction log after deletion is Persistent while it exists — use Persistent for all live registry keys and files regardless of post-deletion recoverability.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Residual = 0

Storage-level artifact inherently present on any live mounted volume — cannot be destroyed by normal system operation. Lowest acquisition urgency: collect last. Example: $MFT (always present on NTFS), Volume Boot Record.

Not a synonym for “recoverable via VSS/.LOG1/.LOG2 after deletion” — that applies to virtually all NTFS artifacts and is not discriminating.

§

Persistent = 1

Present in its primary location until explicitly deleted. Default class for registry keys, configuration files, and most forensic artifacts on a live system. Examples: Run keys, NTDS.dit, event log files (the file itself, not its contents — for contents see RotatingBuffer).

§

ActivityDriven = 2

Overwritten by ordinary user activity; degrades with normal system use. Examples: MRU lists, Recent Documents, browser history, typed URL cache.

§

RotatingBuffer = 3

Overwritten when a fixed-size circular buffer fills; oldest entries lost. Examples: Windows Event Log records (when log reaches max size), Prefetch files (128-entry limit), $UsnJrnl (wraps based on configured max size).

§

Volatile = 4

Lost on reboot or process termination; exists only in volatile memory. Collect immediately in a live response before system shutdown. Examples: RAM contents, process handles, network connections, open file handles, the in-memory ShimCache state not yet flushed to registry.

Trait Implementations§

Source§

impl Clone for VolatilityClass

Source§

fn clone(&self) -> VolatilityClass

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for VolatilityClass

Source§

impl Debug for VolatilityClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VolatilityClass

Source§

impl Hash for VolatilityClass

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for VolatilityClass

Source§

fn cmp(&self, other: &VolatilityClass) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VolatilityClass

Source§

fn eq(&self, other: &VolatilityClass) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for VolatilityClass

Source§

fn partial_cmp(&self, other: &VolatilityClass) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for VolatilityClass

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.