Skip to main content

FromHttpResponseErrorExt

Trait FromHttpResponseErrorExt 

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

Extension trait for FromHttpResponseError<Error>.

Required Methods§

Source

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

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

Implementors§