#[non_exhaustive]pub enum OperationError<R> {
Client(Error),
Rejected {
status: u16,
code: Option<String>,
message: Option<String>,
body: Supplied<R>,
},
}Expand description
An endpoint error with its documented rejection body when available.
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.
Client(Error)
Client-side, transport, decoding, or ambiguous outcome.
Rejected
A definitive provider rejection.
Trait Implementations§
Source§impl<R: Debug> Debug for OperationError<R>
impl<R: Debug> Debug for OperationError<R>
Source§impl<R> Display for OperationError<R>
impl<R> Display for OperationError<R>
Source§impl<R> Error for OperationError<R>
impl<R> Error for OperationError<R>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<R> Freeze for OperationError<R>
impl<R> RefUnwindSafe for OperationError<R>where
Supplied<R>: RefUnwindSafe,
impl<R> Send for OperationError<R>
impl<R> Sync for OperationError<R>
impl<R> Unpin for OperationError<R>
impl<R> UnsafeUnpin for OperationError<R>where
Supplied<R>: UnsafeUnpin,
impl<R> UnwindSafe for OperationError<R>where
Supplied<R>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more