Enum linux_audit_parser::Value
source · pub enum Value<'a> {
Empty,
Str(&'a [u8], Quote),
Segments(Vec<&'a [u8]>),
List(Vec<Value<'a>>),
StringifiedList(Vec<Value<'a>>),
Map(Vec<(Key, Value<'a>)>),
Number(Number),
Skipped((usize, usize)),
Literal(&'static str),
Owned(Vec<u8>),
}Expand description
Representation of the value part of key/value pairs in Body
Variants§
Empty
Str(&'a [u8], Quote)
Segments(Vec<&'a [u8]>)
Segments are generated in Coalesce::normalize() from EXECVE
/ aX[Y] fragments.
List(Vec<Value<'a>>)
Lists are generated in Coalesce::normalize() e.g.: EXECVE /
a0, a1, a2 … -> ARGV
StringifiedList(Vec<Value<'a>>)
Map(Vec<(Key, Value<'a>)>)
Key/Value map, used in ENV (environment variables) list
Number(Number)
Values generated in parse() from unquoted Str values
For example, SYSCALL / a0 etc are interpreted as
hexadecimal numbers.
Skipped((usize, usize))
Elements removed from ARGV lists
Literal(&'static str)
Owned(Vec<u8>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)