ChieResult

Type Alias ChieResult 

Source
pub type ChieResult<T> = Result<T, ChieError>;
Expand description

Generic result type for CHIE operations

This type provides consistent error handling across the crate with optional error context for better debugging.

Aliased Type§

pub enum ChieResult<T> {
    Ok(T),
    Err(ChieError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ChieError)

Contains the error value

Trait Implementations§

Source§

impl<T> ResultExt<T> for ChieResult<T>

Source§

fn context(self, ctx: impl Into<String>) -> ChieResult<T>

Add context to an error Read more
Source§

fn with_context<F>(self, f: F) -> ChieResult<T>
where F: FnOnce() -> String,

Add context using a closure (lazy evaluation) Read more