#[non_exhaustive]pub enum AwaitResultError {
Api(Error<GetResultError>),
Failed {
result_id: String,
error_message: Option<String>,
},
Timeout {
result_id: String,
last_status: String,
waited: Duration,
},
}Expand description
Error returned by Client::await_result.
Marked #[non_exhaustive]: new variants may be added without a breaking
change, so downstream matches should carry a wildcard arm.
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.
Api(Error<GetResultError>)
The underlying get_result call failed.
Failed
The result reached failed status.
Fields
Timeout
The result did not become ready before the poll timeout elapsed.
Trait Implementations§
Source§impl Debug for AwaitResultError
impl Debug for AwaitResultError
Source§impl Display for AwaitResultError
impl Display for AwaitResultError
Source§impl Error for AwaitResultError
impl Error for AwaitResultError
1.30.0 · 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 !RefUnwindSafe for AwaitResultError
impl !UnwindSafe for AwaitResultError
impl Freeze for AwaitResultError
impl Send for AwaitResultError
impl Sync for AwaitResultError
impl Unpin for AwaitResultError
impl UnsafeUnpin for AwaitResultError
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