Enum rustsec::advisory::informational::Informational[][src]

#[non_exhaustive]pub enum Informational {
    Notice,
    Unmaintained,
    Unsound,
    Other(String),
}

Categories of informational vulnerabilities

Variants (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

impl Informational[src]

pub fn as_str(&self) -> &str[src]

Get a str representing an Informational category

pub fn is_notice(&self) -> bool[src]

Is this informational advisory a notice?

pub fn is_unmaintained(&self) -> bool[src]

Is this informational advisory for an unmaintained crate?

pub fn is_unsound(&self) -> bool[src]

Is this informational advisory for an unsound crate?

pub fn is_other(&self) -> bool[src]

Is this informational advisory of an unknown kind?

pub fn warning_kind(&self) -> Option<Kind>[src]

Get a warning kind for this informational type (if applicable)

Trait Implementations

impl Clone for Informational[src]

impl Debug for Informational[src]

impl<'de> Deserialize<'de> for Informational[src]

impl Display for Informational[src]

impl Eq for Informational[src]

impl FromStr for Informational[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Informational[src]

impl Ord for Informational[src]

impl PartialEq<Informational> for Informational[src]

impl PartialOrd<Informational> for Informational[src]

impl Serialize for Informational[src]

impl StructuralEq for Informational[src]

impl StructuralPartialEq for Informational[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.