pub enum ScanContext {
Exec,
Paste,
FileScan,
}Expand description
Context for Tier 1 scanning.
Variants§
Exec
Exec-time: command about to be executed (check subcommand).
Paste
Paste-time: content being pasted (paste subcommand).
FileScan
File scan: content read from a file (scan subcommand). Skips tier-1 fast-exit, runs byte scan + configfile rules only.
Trait Implementations§
Source§impl Clone for ScanContext
impl Clone for ScanContext
Source§fn clone(&self) -> ScanContext
fn clone(&self) -> ScanContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ScanContext
impl Debug for ScanContext
Source§impl PartialEq for ScanContext
impl PartialEq for ScanContext
impl Copy for ScanContext
impl Eq for ScanContext
impl StructuralPartialEq for ScanContext
Auto Trait Implementations§
impl Freeze for ScanContext
impl RefUnwindSafe for ScanContext
impl Send for ScanContext
impl Sync for ScanContext
impl Unpin for ScanContext
impl UnsafeUnpin for ScanContext
impl UnwindSafe for ScanContext
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more