Type Alias utils::anytrace::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

Alias for the main Result type used by the crate.

Aliased Type§

enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<T> Context<T> for Result<T>

source§

fn context(self, error: Error) -> Result<T>

Attach context to the given error. Read more
source§

impl<T> Log for Result<T>

source§

fn log(&self)

Log an error via tracing utilities, printing it.