[−][src]Trait ruma_api::EndpointError
Gives users the ability to define their own serializable/deserializable errors.
Required methods
fn try_from_response(
response: Response<Vec<u8>>
) -> Result<Self, ResponseDeserializationError>
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.
Implementors
impl EndpointError for Void[src]
fn try_from_response(
response: Response<Vec<u8>>
) -> Result<Self, ResponseDeserializationError>[src]
response: Response<Vec<u8>>
) -> Result<Self, ResponseDeserializationError>