Enum rustsec::advisory::Informational
source · #[non_exhaustive]
pub enum Informational {
Notice,
Unmaintained,
Unsound,
Other(String),
}Expand description
Categories of informational vulnerabilities
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Notice
Security notices for a crate which are published on https://rustsec.org but don’t represent a vulnerability in a crate itself.
Unmaintained
Crate is unmaintained / abandoned
Unsound
Crate is not sound, i.e., unsound.
A crate is unsound if, using its public API from safe code, it is possible to cause Undefined Behavior.
Other(String)
Other types of informational advisories: left open-ended to add more of them in the future.
Implementations§
source§impl Informational
impl Informational
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Get a str representing an Informational category
sourcepub fn is_unmaintained(&self) -> bool
pub fn is_unmaintained(&self) -> bool
Is this informational advisory for an unmaintained crate?
sourcepub fn is_unsound(&self) -> bool
pub fn is_unsound(&self) -> bool
Is this informational advisory for an unsound crate?
sourcepub fn warning_kind(&self) -> Option<WarningKind>
pub fn warning_kind(&self) -> Option<WarningKind>
Get a warning kind for this informational type (if applicable)
Trait Implementations§
source§impl Clone for Informational
impl Clone for Informational
source§fn clone(&self) -> Informational
fn clone(&self) -> Informational
Returns a copy 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 Informational
impl Debug for Informational
source§impl<'de> Deserialize<'de> for Informational
impl<'de> Deserialize<'de> for Informational
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Informational
impl Display for Informational
source§impl FromStr for Informational
impl FromStr for Informational
source§impl Hash for Informational
impl Hash for Informational
source§impl Ord for Informational
impl Ord for Informational
source§fn cmp(&self, other: &Informational) -> Ordering
fn cmp(&self, other: &Informational) -> Ordering
1.21.0 · 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<Informational> for Informational
impl PartialEq<Informational> for Informational
source§fn eq(&self, other: &Informational) -> bool
fn eq(&self, other: &Informational) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Informational> for Informational
impl PartialOrd<Informational> for Informational
source§fn partial_cmp(&self, other: &Informational) -> Option<Ordering>
fn partial_cmp(&self, other: &Informational) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Informational
impl Serialize for Informational
impl Eq for Informational
impl StructuralEq for Informational
impl StructuralPartialEq for Informational
Auto Trait Implementations§
impl RefUnwindSafe for Informational
impl Send for Informational
impl Sync for Informational
impl Unpin for Informational
impl UnwindSafe for Informational
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.