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>
impl<Role, Worker, Plan, WorkerRejection, SourceRejection> WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
Sourcepub fn reason(
&self,
) -> WorkerPreparationFailureReason<'_, Role, WorkerRejection, SourceRejection>
pub fn reason( &self, ) -> WorkerPreparationFailureReason<'_, Role, WorkerRejection, SourceRejection>
Inspect the exact failure alternative without exposing stored role names.
Sourcepub fn prepared(
&self,
) -> impl ExactSizeIterator<Item = (&Role, &WorkerSubmission<Worker, Plan>)>
pub fn prepared( &self, ) -> impl ExactSizeIterator<Item = (&Role, &WorkerSubmission<Worker, Plan>)>
Inspect every worker prepared before the failure in selection order.
Sourcepub fn remaining_roles(&self) -> impl ExactSizeIterator<Item = &Role>
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>
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>
impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Sync for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
impl<Role, Worker, Plan, WorkerRejection, SourceRejection> Unpin for WorkerPreparationFailure<Role, Worker, Plan, WorkerRejection, SourceRejection>
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> 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