pub struct GroupSpec {
pub group_id: String,
pub attn_kind: String,
pub rows_per_page: Option<i64>,
pub entry_stride_tokens: Option<i64>,
pub sliding_window_tokens: Option<i64>,
pub replayable: bool,
pub transfer_policy: Option<String>,
pub shard_count: i64,
}Expand description
One cache group’s scheduler-facing semantics (CacheGroupSpec).
Fields§
§group_id: StringThe group.
attn_kind: Stringfull_history, sliding_window or state.
rows_per_page: Option<i64>Rows per page; row-geometry groups only.
entry_stride_tokens: Option<i64>Raw tokens per row; row-geometry groups only.
sliding_window_tokens: Option<i64>The retained window of a sliding-window group.
replayable: boolA sliding-window group regenerated by bounded replay.
transfer_policy: Option<String>full_suffix or latest_snapshot.
shard_count: i64Cyclic owners of the group’s virtual blocks; 1 is replicated.
Implementations§
Source§impl GroupSpec
impl GroupSpec
Sourcepub fn block_granularity(&self) -> Result<i64, LayoutError>
pub fn block_granularity(&self) -> Result<i64, LayoutError>
The raw-token span of one block-table slot (block_granularity);
a state group has none.
Sourcepub fn full_suffix(&self) -> bool
pub fn full_suffix(&self) -> bool
Whether the group transfers its retained history suffix (else its latest snapshot).
Trait Implementations§
impl Eq for GroupSpec
impl StructuralPartialEq for GroupSpec
Auto Trait Implementations§
impl Freeze for GroupSpec
impl RefUnwindSafe for GroupSpec
impl Send for GroupSpec
impl Sync for GroupSpec
impl Unpin for GroupSpec
impl UnsafeUnpin for GroupSpec
impl UnwindSafe for GroupSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.