ruma_client

Type Alias ResponseResult

Source
pub type ResponseResult<C, R> = Result<<R as OutgoingRequest>::IncomingResponse, ResponseError<C, R>>;
Expand description

The result of sending the request R with the http client C.

Aliased Type§

enum ResponseResult<C, R> {
    Ok(<R as OutgoingRequest>::IncomingResponse),
    Err(Error<<C as HttpClient>::Error, <R as OutgoingRequest>::EndpointError>),
}

Variants§

§1.0.0

Ok(<R as OutgoingRequest>::IncomingResponse)

Contains the success value

§1.0.0

Err(Error<<C as HttpClient>::Error, <R as OutgoingRequest>::EndpointError>)

Contains the error value