Skip to main content

ServiceResult

Type Alias ServiceResult 

Source
pub type ServiceResult<T> = Result<T, BoxError>;
Expand description

Service result type using Tower’s BoxError pattern for unified error handling

Aliased Type§

pub enum ServiceResult<T> {
    Ok(T),
    Err(Box<dyn Error + Sync + Send>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error + Sync + Send>)

Contains the error value