ruma::api::client::error

Trait FromHttpResponseErrorExt

Source
pub trait FromHttpResponseErrorExt {
    // Required method
    fn error_kind(&self) -> Option<&ErrorKind>;
}
Available on (crate features client-api-c or client-api-s) and (crate features client or server) and crate feature api only.
Expand description

Extension trait for FromHttpResponseError<ruma_client_api::Error>.

Required Methods§

Source

fn error_kind(&self) -> Option<&ErrorKind>

If self is a server error in the errcode + error format expected for client-server API endpoints, returns the error kind (errcode).

Implementors§