volga::http::response

Type Alias HttpResult

Source
pub type HttpResult = Result<HttpResponse>;

Aliased Type§

enum HttpResult {
    Ok(Response<HttpBody>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Response<HttpBody>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<T: Serialize> From<ResponseContext<T>> for HttpResult

Source§

fn from(value: ResponseContext<T>) -> Self

Converts to this type from the input type.