pub struct StartingWorkerPreparation<Source, Role, Worker, Plan>{ /* private fields */ }Expand description
Source work after one accepted start and before its first submission.
Only this phase can return a source rejection. Once it accepts a first submission, the returned pending request has a nonempty prepared prefix and can report only worker-specific rejection for later roles.
Implementations§
Source§impl<Source, Role, Worker, Plan> StartingWorkerPreparation<Source, Role, Worker, Plan>
impl<Source, Role, Worker, Plan> StartingWorkerPreparation<Source, Role, Worker, Plan>
Sourcepub fn source_and_role(&mut self) -> (&mut Source, &Role)
pub fn source_and_role(&mut self) -> (&mut Source, &Role)
Borrow the source and first selected application role.
Sourcepub fn accept(
self,
submission: WorkerSubmission<Worker, Plan>,
) -> ControlFlow<WorkerPreparation<Source, Role, Worker, Plan>, PendingWorkerPreparation<Source, Role, Worker, Plan>>
pub fn accept( self, submission: WorkerSubmission<Worker, Plan>, ) -> ControlFlow<WorkerPreparation<Source, Role, Worker, Plan>, PendingWorkerPreparation<Source, Role, Worker, Plan>>
Accept the first submission and advance or complete the ordered group.
Sourcepub fn reject(
self,
reason: Source::WorkerRejection,
) -> WorkerPreparation<Source, Role, Worker, Plan>
pub fn reject( self, reason: Source::WorkerRejection, ) -> WorkerPreparation<Source, Role, Worker, Plan>
Return an exact worker rejection for the first selected role.
Sourcepub fn reject_source(
self,
reason: Source::SourceRejection,
) -> WorkerPreparation<Source, Role, Worker, Plan>
pub fn reject_source( self, reason: Source::SourceRejection, ) -> WorkerPreparation<Source, Role, Worker, Plan>
Return the source and its exact rejection before any worker submission.
Auto Trait Implementations§
impl<Source, Role, Worker, Plan> Freeze for StartingWorkerPreparation<Source, Role, Worker, Plan>where
Source: Freeze,
impl<Source, Role, Worker, Plan> RefUnwindSafe for StartingWorkerPreparation<Source, Role, Worker, Plan>where
Source: RefUnwindSafe,
Role: RefUnwindSafe,
impl<Source, Role, Worker, Plan> Send for StartingWorkerPreparation<Source, Role, Worker, Plan>
impl<Source, Role, Worker, Plan> Sync for StartingWorkerPreparation<Source, Role, Worker, Plan>
impl<Source, Role, Worker, Plan> Unpin for StartingWorkerPreparation<Source, Role, Worker, Plan>where
Source: Unpin,
impl<Source, Role, Worker, Plan> UnsafeUnpin for StartingWorkerPreparation<Source, Role, Worker, Plan>where
Source: UnsafeUnpin,
impl<Source, Role, Worker, Plan> UnwindSafe for StartingWorkerPreparation<Source, Role, Worker, Plan>where
Source: UnwindSafe,
Role: RefUnwindSafe,
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