pub enum ThreatCategory {
Spoofing,
Tampering,
Repudiation,
InformationDisclosure,
DenialOfService,
ElevationOfPrivilege,
SupplyChain,
SocialEngineering,
Other,
}Expand description
Threat category labels.
Variants§
Spoofing
Tampering
Repudiation
InformationDisclosure
DenialOfService
ElevationOfPrivilege
SupplyChain
SocialEngineering
Other
Implementations§
Trait Implementations§
Source§impl Clone for ThreatCategory
impl Clone for ThreatCategory
Source§fn clone(&self) -> ThreatCategory
fn clone(&self) -> ThreatCategory
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 ThreatCategory
impl Debug for ThreatCategory
Source§impl Display for ThreatCategory
impl Display for ThreatCategory
Source§impl FromStr for ThreatCategory
impl FromStr for ThreatCategory
Source§type Err = ThreatError
type Err = ThreatError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<ThreatCategory, <ThreatCategory as FromStr>::Err>
fn from_str( input: &str, ) -> Result<ThreatCategory, <ThreatCategory as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ThreatCategory
impl Hash for ThreatCategory
Source§impl Ord for ThreatCategory
impl Ord for ThreatCategory
Source§fn cmp(&self, other: &ThreatCategory) -> Ordering
fn cmp(&self, other: &ThreatCategory) -> 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 ThreatCategory
impl PartialEq for ThreatCategory
Source§fn eq(&self, other: &ThreatCategory) -> bool
fn eq(&self, other: &ThreatCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ThreatCategory
impl PartialOrd for ThreatCategory
impl Copy for ThreatCategory
impl Eq for ThreatCategory
impl StructuralPartialEq for ThreatCategory
Auto Trait Implementations§
impl Freeze for ThreatCategory
impl RefUnwindSafe for ThreatCategory
impl Send for ThreatCategory
impl Sync for ThreatCategory
impl Unpin for ThreatCategory
impl UnsafeUnpin for ThreatCategory
impl UnwindSafe for ThreatCategory
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