Trait ruma::api::IncomingResponse  
source · [−]pub trait IncomingResponse {
    type EndpointError: EndpointError;
    fn try_from_http_response<T>(
        response: Response<T>
    ) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
    where
        T: AsRef<[u8]>;
}Expand description
A response type for a Matrix API endpoint, used for receiving responses.
Required Associated Types
A type capturing the expected error conditions the server can return.
Required Methods
fn try_from_http_response<T>(
    response: Response<T>
) -> Result<Self, FromHttpResponseError<Self::EndpointError>> where
    T: AsRef<[u8]>, 
fn try_from_http_response<T>(
    response: Response<T>
) -> Result<Self, FromHttpResponseError<Self::EndpointError>> where
    T: AsRef<[u8]>, 
Tries to convert the given http::Response into this response type.
