pub struct LatentSlot {
pub storage: Arc<RwLock<Storage>>,
pub layout: Layout,
pub version: u64,
pub authority: AuthorityState,
}Expand description
One slot’s persistent latent buffer within a LatentKvCache layer.
The per-slot analogue of KvLayer’s k/v pair, generalized to an
arbitrary slot count and independent per-slot trailing shape.
Fields§
§storage: Arc<RwLock<Storage>>§layout: LayoutView layout into storage. For the pre-allocated (capacity)
buffers LatentKvCache::with_capacity allocates, the layout
matches the storage’s full [max_seq_len, ...trailing] shape.
version: u64Monotonic write version. Bumps on every successful
Op::WriteSlice targeting this slot. Placeholder for the future
multi-device coherence protocol — mirrors KvLayer::k_version /
v_version.
Coherence authority. Placeholder — see AuthorityState.
Auto Trait Implementations§
impl Freeze for LatentSlot
impl RefUnwindSafe for LatentSlot
impl Send for LatentSlot
impl Sync for LatentSlot
impl Unpin for LatentSlot
impl UnsafeUnpin for LatentSlot
impl UnwindSafe for LatentSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more