pub struct Allocation {
pub policy_id: PolicyId,
pub demand: u32,
pub desired: u16,
pub active_owned: u16,
pub headroom_before: u16,
pub to_start: u16,
pub limiting_factor: LimitingFactor,
}Expand description
One policy’s share of one reconciliation pass.
Fields§
§policy_id: PolicyId§demand: u32Queued jobs matching this policy’s routing labels.
desired: u16clamp(demand, min_capacity, max_capacity).
active_owned: u16Attempts already in flight for this policy.
headroom_before: u16Host headroom before this allocation was granted.
to_start: u16How many runners to start now. Never more than the headroom.
limiting_factor: LimitingFactorImplementations§
Source§impl Allocation
impl Allocation
pub const fn starts_nothing(&self) -> bool
Trait Implementations§
Source§impl Clone for Allocation
impl Clone for Allocation
Source§fn clone(&self) -> Allocation
fn clone(&self) -> Allocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Allocation
impl Debug for Allocation
impl Eq for Allocation
Source§impl PartialEq for Allocation
impl PartialEq for Allocation
impl StructuralPartialEq for Allocation
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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