[−][src]Trait ruma_api::EndpointError
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]
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]
pub fn try_from_response(
response: Response<Vec<u8>>
) -> Result<Self, ResponseDeserializationError>
[src]
response: Response<Vec<u8>>
) -> Result<Self, ResponseDeserializationError>