pub struct KvSlotCapacitySnapshot {
pub block_size: usize,
pub total_blocks: usize,
pub free_blocks: usize,
}Expand description
Point-in-time model-owned paged-KV capacity snapshot.
This is intentionally smaller than KvSlotReservation: it lets the
engine observe whether physical block capacity has actually changed after a
release, without allocating speculative slots or depending on model-family
names.
Fields§
§block_size: usize§total_blocks: usize§free_blocks: usizeTrait Implementations§
Source§impl Clone for KvSlotCapacitySnapshot
impl Clone for KvSlotCapacitySnapshot
Source§fn clone(&self) -> KvSlotCapacitySnapshot
fn clone(&self) -> KvSlotCapacitySnapshot
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 KvSlotCapacitySnapshot
impl Debug for KvSlotCapacitySnapshot
Source§impl<'de> Deserialize<'de> for KvSlotCapacitySnapshot
impl<'de> Deserialize<'de> for KvSlotCapacitySnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KvSlotCapacitySnapshot
Source§impl PartialEq for KvSlotCapacitySnapshot
impl PartialEq for KvSlotCapacitySnapshot
Source§impl Serialize for KvSlotCapacitySnapshot
impl Serialize for KvSlotCapacitySnapshot
impl StructuralPartialEq for KvSlotCapacitySnapshot
Auto Trait Implementations§
impl Freeze for KvSlotCapacitySnapshot
impl RefUnwindSafe for KvSlotCapacitySnapshot
impl Send for KvSlotCapacitySnapshot
impl Sync for KvSlotCapacitySnapshot
impl Unpin for KvSlotCapacitySnapshot
impl UnsafeUnpin for KvSlotCapacitySnapshot
impl UnwindSafe for KvSlotCapacitySnapshot
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