Type Alias ruma::client::ResponseResult

source ·
pub type ResponseResult<C, R> = Result<<R as OutgoingRequest>::IncomingResponse, Error<<C as HttpClient>::Error, <R as OutgoingRequest>::EndpointError>>;
Available on crate feature client only.
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