[]Trait matrix_sdk_base::EndpointError

pub trait EndpointError: 'static + Error {
    pub fn try_from_response(
        response: Response<Vec<u8, Global>>
    ) -> Result<Self, ResponseDeserializationError>; }

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>

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.

Loading content...

Implementations on Foreign Types

impl EndpointError for Void

Loading content...

Implementors

impl EndpointError for UiaaResponse

impl EndpointError for Error

Loading content...