Trait matrix_sdk_base::ruma::api::OutgoingResponse

source ·
pub trait OutgoingResponse {
    // Required method
    fn try_into_http_response<T>(self) -> Result<Response<T>, IntoHttpError>
       where T: Default + BufMut;
}
Available on crate feature api only.
Expand description

A request type for a Matrix API endpoint, used for sending responses.

Required Methods§

source

fn try_into_http_response<T>(self) -> Result<Response<T>, IntoHttpError>
where T: Default + BufMut,

Tries to convert this response into an http::Response.

This method should only fail when when invalid header values are specified. It may also fail with a serialization error in case of bugs in Ruma though.

Object Safety§

This trait is not object safe.

Implementors§