Struct ruma_client_api::error::Error [−][src]
pub struct Error {
pub kind: ErrorKind,
pub message: String,
pub status_code: StatusCode,
}Expand description
A Matrix Error
Fields
kind: ErrorKindExpand description
A value which can be used to handle an error message
message: StringExpand description
A human-readable error message, usually a sentence explaining what went wrong.
status_code: StatusCodeExpand description
The http status code
Trait Implementations
impl EndpointError for Error[src]
impl EndpointError for Error[src]fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>
) -> Result<Self, ResponseDeserializationError>[src]
fn try_from_http_response<T: AsRef<[u8]>>(
response: Response<T>
) -> Result<Self, ResponseDeserializationError>[src]Tries to construct Self from an http::Response. Read more
impl Error for Error[src]
impl Error for Error[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl From<Error> for UiaaResponse[src]
impl From<Error> for UiaaResponse[src]fn from(error: MatrixError) -> Self[src]
fn from(error: MatrixError) -> Self[src]Performs the conversion.
impl OutgoingResponse for Error[src]
impl OutgoingResponse for Error[src]fn try_into_http_response<T: Default + BufMut>(
self
) -> Result<Response<T>, IntoHttpError>[src]
fn try_into_http_response<T: Default + BufMut>(
self
) -> Result<Response<T>, IntoHttpError>[src]Tries to convert this response into an http::Response. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more