Skip to main content

HandlerResponse

Type Alias HandlerResponse 

Source
pub type HandlerResponse<T> = Result<T, ServiceError>;
Expand description

The response type returned by implementors of a humblegen service trait function.

Aliased Type§

pub enum HandlerResponse<T> {
    Ok(T),
    Err(ServiceError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ServiceError)

Contains the error value