pub enum RealtimeCompletionCreationError<C, E> {
BeforeSubmission(E),
AfterSubmission {
error: E,
completion: C,
},
}Expand description
Failure before completion creation or after native work already began.
Variants§
BeforeSubmission(E)
No native work escaped the failed completion operation.
AfterSubmission
Native work began and its exact quarantine completion must be retained.
Implementations§
Source§impl<C, E> RealtimeCompletionCreationError<C, E>
impl<C, E> RealtimeCompletionCreationError<C, E>
Sourcepub const fn before_submission(error: E) -> Self
pub const fn before_submission(error: E) -> Self
Reports a failure proven to precede native submission.
Sourcepub const fn after_submission(error: E, completion: C) -> Self
pub const fn after_submission(error: E, completion: C) -> Self
Reports a failure after submission while preserving quarantine ownership.
Auto Trait Implementations§
impl<C, E> Freeze for RealtimeCompletionCreationError<C, E>
impl<C, E> RefUnwindSafe for RealtimeCompletionCreationError<C, E>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, E> Send for RealtimeCompletionCreationError<C, E>
impl<C, E> Sync for RealtimeCompletionCreationError<C, E>
impl<C, E> Unpin for RealtimeCompletionCreationError<C, E>
impl<C, E> UnsafeUnpin for RealtimeCompletionCreationError<C, E>where
E: UnsafeUnpin,
C: UnsafeUnpin,
impl<C, E> UnwindSafe for RealtimeCompletionCreationError<C, E>where
E: UnwindSafe,
C: 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