Skip to main content

InterruptedWorker

Enum InterruptedWorker 

Source
pub enum InterruptedWorker<Worker, Plan>
where Worker: Behavior, Plan: ActivationPlan, BehaviorAddr<Worker>: EndpointAddress, StableProxy<Worker, Plan>: Behavior<Protocol = Worker::Protocol>,
{ Submission(WorkerSubmission<Worker, Plan>), ProxyInputRejected, ProxyReported(ProxyOutcome<Worker, Plan>), }
Expand description

Complete worker disposition when a start is interrupted before availability.

Variants§

§

Submission(WorkerSubmission<Worker, Plan>)

The worker never left the supervisor’s local submission.

§

ProxyInputRejected

The emitted proxy input was rejected and moved to diagnostic custody.

§

ProxyReported(ProxyOutcome<Worker, Plan>)

The proxy returned the exact result of the interrupted input.

Auto Trait Implementations§

§

impl<Worker, Plan> Freeze for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Freeze, Worker: Freeze, Plan: Freeze, <<Worker as Behavior>::Protocol as Protocol>::Msg: Freeze, <Plan as ActivationPlan>::Ready: Freeze, <Worker as Behavior>::Error: Freeze, <Plan as ActivationPlan>::Rejection: Freeze, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Freeze, <Worker as Behavior>::Sends: Freeze, <Worker as Behavior>::Ph: Freeze,

§

impl<Worker, Plan> RefUnwindSafe for InterruptedWorker<Worker, Plan>

§

impl<Worker, Plan> Send for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Send, Worker: Send, <<Worker as Behavior>::Protocol as Protocol>::Msg: Send, <Worker as Behavior>::Error: Send, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Send, <Worker as Behavior>::Sends: Send, <Worker as Behavior>::Ph: Send, <<Worker as Behavior>::Birth as BirthMode>::Child: Send,

§

impl<Worker, Plan> Sync for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Sync, Worker: Sync, Plan: Sync, <<Worker as Behavior>::Protocol as Protocol>::Msg: Sync, <Plan as ActivationPlan>::Ready: Sync, <Worker as Behavior>::Error: Sync, <Plan as ActivationPlan>::Rejection: Sync, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Sync, <Worker as Behavior>::Sends: Sync, <Worker as Behavior>::Ph: Sync, <<Worker as Behavior>::Birth as BirthMode>::Child: Sync,

§

impl<Worker, Plan> Unpin for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + Unpin, Worker: Unpin, Plan: Unpin, <<Worker as Behavior>::Protocol as Protocol>::Msg: Unpin, <Plan as ActivationPlan>::Ready: Unpin, <Worker as Behavior>::Error: Unpin, <Plan as ActivationPlan>::Rejection: Unpin, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: Unpin, <Worker as Behavior>::Sends: Unpin, <Worker as Behavior>::Ph: Unpin, <<Worker as Behavior>::Birth as BirthMode>::Child: Unpin,

§

impl<Worker, Plan> UnsafeUnpin for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + UnsafeUnpin, Worker: UnsafeUnpin, Plan: UnsafeUnpin, <<Worker as Behavior>::Protocol as Protocol>::Msg: UnsafeUnpin, <Plan as ActivationPlan>::Ready: UnsafeUnpin, <Worker as Behavior>::Error: UnsafeUnpin, <Plan as ActivationPlan>::Rejection: UnsafeUnpin, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: UnsafeUnpin, <Worker as Behavior>::Sends: UnsafeUnpin, <Worker as Behavior>::Ph: UnsafeUnpin,

§

impl<Worker, Plan> UnwindSafe for InterruptedWorker<Worker, Plan>
where <<Worker as Behavior>::Protocol as Protocol>::Addr: Sized + UnwindSafe, Worker: UnwindSafe, Plan: UnwindSafe, <<Worker as Behavior>::Protocol as Protocol>::Msg: UnwindSafe, <Plan as ActivationPlan>::Ready: UnwindSafe, <Worker as Behavior>::Error: UnwindSafe, <Plan as ActivationPlan>::Rejection: UnwindSafe, <<<Worker as Behavior>::Protocol as Protocol>::Addr as EndpointAddress>::Established<<Worker as Behavior>::Protocol>: UnwindSafe, <Worker as Behavior>::Sends: UnwindSafe, <Worker as Behavior>::Ph: UnwindSafe, <<Worker as Behavior>::Birth as BirthMode>::Child: 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.