Enum ruma_api::error::FromHttpRequestError [−][src]
#[non_exhaustive] pub enum FromHttpRequestError { Deserialization(RequestDeserializationError), MethodMismatch { expected: Method, received: Method, }, }
Expand description
An error when converting a http request to one of ruma’s endpoint-specific request types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Deserialization(RequestDeserializationError)
Expand description
Deserialization failed
Expand description
HTTP method mismatch
Show fields
Trait Implementations
impl Debug for FromHttpRequestError
[src]
impl Debug for FromHttpRequestError
[src]impl Display for FromHttpRequestError
[src]
impl Display for FromHttpRequestError
[src]impl Error for FromHttpRequestError
[src]
impl Error for FromHttpRequestError
[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<T> From<T> for FromHttpRequestError where
T: Into<RequestDeserializationError>,
[src]
impl<T> From<T> for FromHttpRequestError where
T: Into<RequestDeserializationError>,
[src]Auto Trait Implementations
impl !RefUnwindSafe for FromHttpRequestError
impl Send for FromHttpRequestError
impl Sync for FromHttpRequestError
impl Unpin for FromHttpRequestError
impl !UnwindSafe for FromHttpRequestError
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