pub struct Block {
pub block_id: BlockId,
pub ref_count: u32,
pub is_free: bool,
pub content_hash: Option<u64>,
}Expand description
Represents a single KV cache block
Fields§
§block_id: BlockIdUnique block ID
ref_count: u32Reference count (number of requests using this block)
is_free: boolWhether this block is free
content_hash: Option<u64>For prefix caching: hash of the token sequence in this block
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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