pub enum SlotRequest {
Count(usize),
Auto,
}Expand description
2026-10-01: The --max-batch-size request.
Variants§
Count(usize)
2026-10-01: Exactly this many slots.
Auto
2026-10-01: The count balance_slots chooses, at most AUTO_MAX_SLOTS.
Implementations§
Source§impl SlotRequest
impl SlotRequest
Sourcepub fn ceiling(self) -> usize
pub fn ceiling(self) -> usize
2026-10-01: The slots sized before the KV pool is (the pre-load reserve, the buffer
arena): the count, or for auto its ceiling AUTO_MAX_SLOTS.
Trait Implementations§
Source§impl Clone for SlotRequest
impl Clone for SlotRequest
Source§fn clone(&self) -> SlotRequest
fn clone(&self) -> SlotRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 SlotRequest
impl Debug for SlotRequest
Source§impl Display for SlotRequest
impl Display for SlotRequest
Source§impl FromStr for SlotRequest
impl FromStr for SlotRequest
Source§impl PartialEq for SlotRequest
impl PartialEq for SlotRequest
impl Copy for SlotRequest
impl Eq for SlotRequest
impl StructuralPartialEq for SlotRequest
Auto Trait Implementations§
impl Freeze for SlotRequest
impl RefUnwindSafe for SlotRequest
impl Send for SlotRequest
impl Sync for SlotRequest
impl Unpin for SlotRequest
impl UnwindSafe for SlotRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.