Enum ruma_api::error::ServerError [−][src]
pub enum ServerError<E> { Known(E), Unknown(ResponseDeserializationError), }
Expand description
An error was reported by the server (HTTP status code 4xx or 5xx)
Variants
Expand description
An error that is expected to happen under certain circumstances and that has a well-defined structure
Unknown(ResponseDeserializationError)
Expand description
An error of unexpected type of structure
Trait Implementations
impl<E: Debug> Debug for ServerError<E>
[src]
impl<E: Debug> Debug for ServerError<E>
[src]impl<E: Display> Display for ServerError<E>
[src]
impl<E: Display> Display for ServerError<E>
[src]impl<E: StdError> Error for ServerError<E>
[src]
impl<E: StdError> Error for ServerError<E>
[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]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl<E> From<ServerError<E>> for FromHttpResponseError<E>
[src]
impl<E> From<ServerError<E>> for FromHttpResponseError<E>
[src]fn from(err: ServerError<E>) -> Self
[src]
fn from(err: ServerError<E>) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl<E> !RefUnwindSafe for ServerError<E>
impl<E> Send for ServerError<E> where
E: Send,
E: Send,
impl<E> Sync for ServerError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for ServerError<E> where
E: Unpin,
E: Unpin,
impl<E> !UnwindSafe for ServerError<E>
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