pub enum ChunkOrigin {
Raw,
Cmdline,
Env,
StringTable(String),
Section(String),
NestedMember {
path: String,
format: String,
},
}Expand description
Origin of a chunk inside a capture file. Carrying this with each chunk lets format-specific scrubbers make smarter redaction decisions and lets the CLI explain where a hit was found.
Variants§
Raw
Generic bytes from an unknown / passthrough format.
Cmdline
The captured process’s command-line arguments.
Env
The captured process’s environment block.
StringTable(String)
A named string table or string pool inside a structured format.
Section(String)
A named subsection of a structured format.
NestedMember
A nested member (e.g. inside a tar archive).
Implementations§
Source§impl ChunkOrigin
impl ChunkOrigin
Sourcepub fn nested_within(
self,
container_member: &str,
inner_format: &str,
) -> ChunkOrigin
pub fn nested_within( self, container_member: &str, inner_format: &str, ) -> ChunkOrigin
Wrap an inner origin with an outer container-member context.
Trait Implementations§
Source§impl Clone for ChunkOrigin
impl Clone for ChunkOrigin
Source§fn clone(&self) -> ChunkOrigin
fn clone(&self) -> ChunkOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkOrigin
impl Debug for ChunkOrigin
Source§impl PartialEq for ChunkOrigin
impl PartialEq for ChunkOrigin
Source§fn eq(&self, other: &ChunkOrigin) -> bool
fn eq(&self, other: &ChunkOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChunkOrigin
impl StructuralPartialEq for ChunkOrigin
Auto Trait Implementations§
impl Freeze for ChunkOrigin
impl RefUnwindSafe for ChunkOrigin
impl Send for ChunkOrigin
impl Sync for ChunkOrigin
impl Unpin for ChunkOrigin
impl UnsafeUnpin for ChunkOrigin
impl UnwindSafe for ChunkOrigin
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