[−]Trait matrix_sdk_base::EndpointError
Gives users the ability to define their own serializable / deserializable errors.
Required methods
pub fn try_from_response(
response: Response<Vec<u8, Global>>
) -> Result<Self, ResponseDeserializationError>
response: Response<Vec<u8, Global>>
) -> Result<Self, ResponseDeserializationError>
Tries to construct Self
from an http::Response
.
This will always return Err
variant when no error
field is defined in
the ruma_api
macro.
Implementations on Foreign Types
impl EndpointError for Void
pub fn try_from_response(
response: Response<Vec<u8, Global>>
) -> Result<Void, ResponseDeserializationError>
response: Response<Vec<u8, Global>>
) -> Result<Void, ResponseDeserializationError>
Implementors
impl EndpointError for UiaaResponse
pub fn try_from_response(
response: Response<Vec<u8, Global>>
) -> Result<UiaaResponse, ResponseDeserializationError>
response: Response<Vec<u8, Global>>
) -> Result<UiaaResponse, ResponseDeserializationError>