pub struct CacheBlockId {
pub session_id: u64,
pub global_layer: usize,
pub representation: CacheRepresentation,
pub start: i64,
pub end: i64,
pub rank: Option<CacheRankIdentity>,
}Expand description
Stable identity for one immutable sealed cache block.
Fields§
§session_id: u64Identity shared by every block in one live cache.
global_layer: usizeArchitecture-global decoder layer index.
representation: CacheRepresentationStored attention representation.
start: i64Inclusive absolute token position.
end: i64Exclusive absolute token position.
rank: Option<CacheRankIdentity>Rank-local ownership identity.
Trait Implementations§
Source§impl Clone for CacheBlockId
impl Clone for CacheBlockId
Source§fn clone(&self) -> CacheBlockId
fn clone(&self) -> CacheBlockId
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 CacheBlockId
impl Debug for CacheBlockId
Source§impl<'de> Deserialize<'de> for CacheBlockId
impl<'de> Deserialize<'de> for CacheBlockId
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 CacheBlockId
Source§impl Hash for CacheBlockId
impl Hash for CacheBlockId
Source§impl Ord for CacheBlockId
impl Ord for CacheBlockId
Source§fn cmp(&self, other: &CacheBlockId) -> Ordering
fn cmp(&self, other: &CacheBlockId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CacheBlockId
impl PartialEq for CacheBlockId
Source§impl PartialOrd for CacheBlockId
impl PartialOrd for CacheBlockId
Source§impl Serialize for CacheBlockId
impl Serialize for CacheBlockId
impl StructuralPartialEq for CacheBlockId
Auto Trait Implementations§
impl Freeze for CacheBlockId
impl RefUnwindSafe for CacheBlockId
impl Send for CacheBlockId
impl Sync for CacheBlockId
impl Unpin for CacheBlockId
impl UnsafeUnpin for CacheBlockId
impl UnwindSafe for CacheBlockId
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