Type Alias cache::error::ArcResult

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

A result type returning reference counted cache errors.

Stores an Arc<Error> since the error will be stuck inside a OnceCell and cannot be owned without cloning.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Arc<Error>)

Contains the error value