pub enum CancellationReceipt<Key, Worker, Plan>{
Returned {
authority: CancelAuthority<Key>,
submission: WorkerSubmission<Worker, Plan>,
},
Pending {
authority: CancelAuthority<Key>,
phase: DynamicStatus<Worker::Protocol>,
},
Committed {
authority: CancelAuthority<Key>,
resulting_phase: DynamicStatus<Worker::Protocol>,
},
Cancelled {
authority: CancelAuthority<Key>,
},
Stale {
authority: CancelAuthority<Key>,
},
Draining {
authority: CancelAuthority<Key>,
},
}Expand description
Complete immediate result of one cancellation request.
Variants§
Returned
Pending
Committed
Cancelled
Fields
Stale
Fields
Draining
Global shutdown owns the operation and returns its affine authority.
Fields
Auto Trait Implementations§
impl<Key, Worker, Plan> Freeze for CancellationReceipt<Key, Worker, Plan>
impl<Key, Worker, Plan> RefUnwindSafe for CancellationReceipt<Key, Worker, Plan>where
<<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,
Key: RefUnwindSafe,
Worker: RefUnwindSafe,
Plan: RefUnwindSafe,
<<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: RefUnwindSafe,
impl<Key, Worker, Plan> Send for CancellationReceipt<Key, Worker, Plan>
impl<Key, Worker, Plan> Sync for CancellationReceipt<Key, Worker, Plan>
impl<Key, Worker, Plan> Unpin for CancellationReceipt<Key, Worker, Plan>
impl<Key, Worker, Plan> UnsafeUnpin for CancellationReceipt<Key, Worker, Plan>where
<<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,
Key: UnsafeUnpin,
Worker: UnsafeUnpin,
Plan: UnsafeUnpin,
<<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: UnsafeUnpin,
impl<Key, Worker, Plan> UnwindSafe for CancellationReceipt<Key, Worker, Plan>where
<<Worker as Behavior>::Protocol as Protocol>::Addr: Sized,
Key: UnwindSafe,
Worker: UnwindSafe,
Plan: UnwindSafe,
<<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: 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