Skip to main content

WorkerPreparationFailure

Struct WorkerPreparationFailure 

Source
pub struct WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection> { /* private fields */ }
Expand description

Complete operating worker-preparation failure emitted by a fixed supervisor.

The worker source is not stored here. It returns separately to the supervisor’s recovery policy. Semantic roles are exposed by reference so they need not implement Clone.

Implementations§

Source§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>

Source

pub fn role(&self) -> &Role

Inspect the recovery-triggering semantic role.

Source

pub fn reason( &self, ) -> WorkerPreparationFailureReason<'_, Role, WorkerRejection, SourceRejection>

Inspect the exact failure alternative without exposing stored role names.

Source

pub fn prepared( &self, ) -> impl ExactSizeIterator<Item = (&Role, &WorkerSubmission<Worker, Plan>)>

Inspect every worker prepared before the failure in selection order.

Source

pub fn remaining_roles(&self) -> impl ExactSizeIterator<Item = &Role>

Inspect every selected role left untouched after the failure.

Auto Trait Implementations§

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Freeze for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: Freeze, SourceRejection: Freeze,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> RefUnwindSafe for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: RefUnwindSafe, SourceRejection: RefUnwindSafe, Role: RefUnwindSafe, Worker: RefUnwindSafe, Plan: RefUnwindSafe,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Send for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: Send, SourceRejection: Send, Role: Sync + Send, Worker: Send, Plan: Send,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Sync for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: Sync, SourceRejection: Sync, Role: Sync + Send, Worker: Sync, Plan: Sync,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Unpin for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: Unpin, SourceRejection: Unpin, Worker: Unpin, Plan: Unpin,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> UnsafeUnpin for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: UnsafeUnpin, SourceRejection: UnsafeUnpin,

§

impl<Role, Worker, Plan, WorkerRejection, SourceRejection> UnwindSafe for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
where WorkerRejection: UnwindSafe, SourceRejection: UnwindSafe, Role: RefUnwindSafe, Worker: UnwindSafe, Plan: 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.