#[non_exhaustive]pub enum LaunchEnqueueError<E> {
Preparation(ResourceError),
PreparationAndCleanup {
preparation: ResourceError,
cleanup: ResourceError,
},
Operation(E),
OperationAndCleanup {
operation: E,
cleanup: ResourceError,
},
}Expand description
Failure while preparing, enqueueing, or cleaning up a recorded operation.
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.
Preparation(ResourceError)
The recorder could not prepare the operation for enqueue.
PreparationAndCleanup
Preparation was rejected and phase-aware cleanup also failed.
Operation(E)
The caller’s operation returned its typed error after preparation.
OperationAndCleanup
The operation failed and phase-aware cleanup also failed.
Trait Implementations§
Source§impl<E: Debug> Debug for LaunchEnqueueError<E>
impl<E: Debug> Debug for LaunchEnqueueError<E>
Source§impl<E: Display> Display for LaunchEnqueueError<E>
impl<E: Display> Display for LaunchEnqueueError<E>
Source§impl<E> Error for LaunchEnqueueError<E>where
E: Error + 'static,
impl<E> Error for LaunchEnqueueError<E>where
E: Error + 'static,
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<E> Freeze for LaunchEnqueueError<E>where
E: Freeze,
impl<E> RefUnwindSafe for LaunchEnqueueError<E>where
E: RefUnwindSafe,
impl<E> Send for LaunchEnqueueError<E>where
E: Send,
impl<E> Sync for LaunchEnqueueError<E>where
E: Sync,
impl<E> Unpin for LaunchEnqueueError<E>where
E: Unpin,
impl<E> UnsafeUnpin for LaunchEnqueueError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for LaunchEnqueueError<E>where
E: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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