Skip to main content

WtgResult

Type Alias WtgResult 

Source
pub type WtgResult<T> = Result<T, WtgError>;

Aliased Type§

pub enum WtgResult<T> {
    Ok(T),
    Err(WtgError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WtgError)

Contains the error value

Trait Implementations§

Source§

impl<T> LogError<T> for WtgResult<T>

Source§

fn log_err(self, context: &str) -> Option<T>

Log the error at debug level and convert to Option.