pub enum ThreatIntent {
Curious,
Opportunistic,
Targeted,
Malicious,
Unknown,
}Expand description
Threat intent labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ThreatIntent
impl Clone for ThreatIntent
Source§fn clone(&self) -> ThreatIntent
fn clone(&self) -> ThreatIntent
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 ThreatIntent
impl Debug for ThreatIntent
Source§impl Display for ThreatIntent
impl Display for ThreatIntent
Source§impl FromStr for ThreatIntent
impl FromStr for ThreatIntent
Source§type Err = ThreatError
type Err = ThreatError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<ThreatIntent, <ThreatIntent as FromStr>::Err>
fn from_str(input: &str) -> Result<ThreatIntent, <ThreatIntent as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ThreatIntent
impl Hash for ThreatIntent
Source§impl Ord for ThreatIntent
impl Ord for ThreatIntent
Source§fn cmp(&self, other: &ThreatIntent) -> Ordering
fn cmp(&self, other: &ThreatIntent) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThreatIntent
impl PartialEq for ThreatIntent
Source§fn eq(&self, other: &ThreatIntent) -> bool
fn eq(&self, other: &ThreatIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ThreatIntent
impl PartialOrd for ThreatIntent
impl Copy for ThreatIntent
impl Eq for ThreatIntent
impl StructuralPartialEq for ThreatIntent
Auto Trait Implementations§
impl Freeze for ThreatIntent
impl RefUnwindSafe for ThreatIntent
impl Send for ThreatIntent
impl Sync for ThreatIntent
impl Unpin for ThreatIntent
impl UnsafeUnpin for ThreatIntent
impl UnwindSafe for ThreatIntent
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