Skip to main content

CancellationReceipt

Enum CancellationReceipt 

Source
pub enum CancellationReceipt<Key, Worker, Plan>
where Worker: Behavior, <Worker::Protocol as Protocol>::Addr: EndpointAddress,
{ 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

Fields

§authority: CancelAuthority<Key>
§submission: WorkerSubmission<Worker, Plan>
§

Pending

Fields

§authority: CancelAuthority<Key>
§phase: DynamicStatus<Worker::Protocol>
§

Committed

Fields

§authority: CancelAuthority<Key>
§resulting_phase: DynamicStatus<Worker::Protocol>
§

Cancelled

Fields

§authority: CancelAuthority<Key>
§

Stale

Fields

§authority: CancelAuthority<Key>
§

Draining

Global shutdown owns the operation and returns its affine authority.

Fields

§authority: CancelAuthority<Key>

Auto Trait Implementations§

§

impl<Key, Worker, Plan> Freeze for CancellationReceipt<Key, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Key: Freeze, Worker: Freeze, Plan: Freeze, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Freeze,

§

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>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Key: Send, Worker: Send, Plan: Send, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Send,

§

impl<Key, Worker, Plan> Sync for CancellationReceipt<Key, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Key: Sync, Worker: Sync, Plan: Sync, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Sync,

§

impl<Key, Worker, Plan> Unpin for CancellationReceipt<Key, Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized, Key: Unpin, Worker: Unpin, Plan: Unpin, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.