pub enum Action<P> {
Dispatch(Dispatch<P>),
Abort {
lease: LeaseId,
id: TaskId,
reason: AbortReason,
},
ScaleTo {
pool: PoolId,
desired: u32,
},
Status(StatusEvent),
Persist(Box<Mutation<P>>),
SpaceAvailable,
}Expand description
Something the driver must do.
Variants§
Dispatch(Dispatch<P>)
Run an attempt on a free worker of its pool.
Abort
Stop the attempt (the engine already treats it as finished).
Fields
§
reason: AbortReasonWhy it was aborted.
ScaleTo
Ask the pool’s scaler for desired workers; report back with set_capacity.
Status(StatusEvent)
A task changed status.
Persist(Box<Mutation<P>>)
Write this mutation to durable storage (only with CoreConfig::persist).
SpaceAvailable
Space freed after a SubmitError::Full; waiting submitters may retry.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Action<P>
impl<P> RefUnwindSafe for Action<P>
impl<P> Send for Action<P>
impl<P> Sync for Action<P>
impl<P> Unpin for Action<P>
impl<P> UnsafeUnpin for Action<P>
impl<P> UnwindSafe for Action<P>
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