pub struct Slots {
pub per_group: BTreeMap<String, usize>,
pub total: usize,
}Expand description
The cap a run actually has: one number per server, and the sum of them, floored by
[flares] max_concurrent.
A group takes its lowest member’s bound — the conservative reading of “these are the same box”, because the cost of guessing high is a swap cycle that stops one model mid-turn.
Fields§
§per_group: BTreeMap<String, usize>§total: usizeTrait Implementations§
impl Eq for Slots
impl StructuralPartialEq for Slots
Auto Trait Implementations§
impl Forget for Slots
impl Freeze for Slots
impl Move for Slots
impl RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnsafeUnpin for Slotswhere
*const LeafNode<String, usize> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, usize)>>: UnsafeUnpin,
impl UnwindSafe for Slots
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.