pub enum PoolAction {
None,
Start(&'static TaskNode),
Stop(&'static TaskNode),
}Expand description
What the supervisor should do for a pool this tick. The async part (start /
stop) is applied by the caller, keeping Pool object-safe without futures.
Variants§
None
Nothing to do this tick.
Start(&'static TaskNode)
Start this (currently down) pool member.
Stop(&'static TaskNode)
Stop this (running, idle) pool member.
Auto Trait Implementations§
impl !RefUnwindSafe for PoolAction
impl !UnwindSafe for PoolAction
impl Freeze for PoolAction
impl Send for PoolAction
impl Sync for PoolAction
impl Unpin for PoolAction
impl UnsafeUnpin for PoolAction
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