Skip to main content

NotFound

Trait NotFound 

Source
pub trait NotFound<T> {
    // Required method
    fn is_not_found(&self) -> bool;
}
Expand description

Classifies results that contain the crate’s not-found error family.

Successful results and unrelated errors are not classified as missing. Classification delegates to Error::is_not_found.

Required Methods§

Source

fn is_not_found(&self) -> bool

Reports whether the result contains a not-found error.

An Ok value always returns false. Other error variants also return false without changing the result.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> NotFound<T> for Result<T, Error>