pub enum WaitForBatchError {
GetBatchStatusError(GetBatchStatusError),
BatchFailed {
id: String,
error: String,
},
BatchCancelled(String),
BatchTimeout(String),
BatchExpired(String),
}Expand description
Errors that can occur when waiting for a batch to complete.
Variants§
GetBatchStatusError(GetBatchStatusError)
An error occurred when getting the batch status.
BatchFailed
The batch failed.
BatchCancelled(String)
The batch was cancelled.
BatchTimeout(String)
Timeout waiting for batch to complete.
BatchExpired(String)
The batch has expired.
Trait Implementations§
Source§impl Debug for WaitForBatchError
impl Debug for WaitForBatchError
Source§impl Display for WaitForBatchError
impl Display for WaitForBatchError
Source§impl Error for WaitForBatchError
impl Error for WaitForBatchError
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()
Source§impl From<GetBatchStatusError> for WaitForBatchError
impl From<GetBatchStatusError> for WaitForBatchError
Source§fn from(source: GetBatchStatusError) -> Self
fn from(source: GetBatchStatusError) -> Self
Converts to this type from the input type.
Source§impl From<WaitForBatchError> for BatchChatError
impl From<WaitForBatchError> for BatchChatError
Source§fn from(source: WaitForBatchError) -> Self
fn from(source: WaitForBatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WaitForBatchError
impl !RefUnwindSafe for WaitForBatchError
impl Send for WaitForBatchError
impl Sync for WaitForBatchError
impl Unpin for WaitForBatchError
impl UnsafeUnpin for WaitForBatchError
impl !UnwindSafe for WaitForBatchError
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