[][src]Trait ruma_api::EndpointError

pub trait EndpointError: StdError + Sized + 'static {
    pub fn try_from_response(
        response: Response<Vec<u8>>
    ) -> 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>>
) -> Result<Self, ResponseDeserializationError>
[src]

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...

Implementors

impl EndpointError for Void[src]

Loading content...