[][src]Trait ruma_api::EndpointError

pub trait EndpointError: Sized {
    fn try_from_response(
        response: Response<Vec<u8>>
    ) -> Result<Self, ResponseDeserializationError>; }

Gives users the ability to define their own serializable/deserializable errors.

Required methods

fn try_from_response(
    response: Response<Vec<u8>>
) -> 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...

Implementors

impl EndpointError for Void[src]

Loading content...