pub struct OwnDemand;Expand description
Every policy’s demand is its own reading: no coordinator places runners.
Trait Implementations§
impl Copy for OwnDemand
Source§impl DemandDirector for OwnDemand
impl DemandDirector for OwnDemand
Source§fn directed_demand(&self, _policy: &ScalePolicy) -> Option<u32>
fn directed_demand(&self, _policy: &ScalePolicy) -> Option<u32>
Some(n): policy’s demand this pass is n, not its reading.
None: its own reading, as without a coordinator.Source§fn launched(&self, _policy: &ScalePolicy, _attempt: AttemptId)
fn launched(&self, _policy: &ScalePolicy, _attempt: AttemptId)
A runner was started for
policy (as soon as it exists, whether or
not its demand was directed).Source§fn start_failed(&self, _policy: &ScalePolicy, _attempt: Option<AttemptId>)
fn start_failed(&self, _policy: &ScalePolicy, _attempt: Option<AttemptId>)
No runner could be started for
policy, for a real reason: not a
runner still being brought up. attempt is the one reported through
Self::launched whose bring-up failed, if it got that far: what it was
reported for is waiting again, to be retried rather than placed anew.Source§fn older_waiting(&self, _policy: &ScalePolicy) -> bool
fn older_waiting(&self, _policy: &ScalePolicy) -> bool
Whether an older launch of another policy on this host still has no
runner, so
policy should let its target’s loop reserve first.Auto Trait Implementations§
impl Forget for OwnDemand
impl Freeze for OwnDemand
impl RefUnwindSafe for OwnDemand
impl Send for OwnDemand
impl Sync for OwnDemand
impl Unpin for OwnDemand
impl UnsafeUnpin for OwnDemand
impl UnwindSafe for OwnDemand
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