pub struct CompactionStateKey;Expand description
State key for context compaction state.
Trait Implementations§
Source§impl StateKey for CompactionStateKey
impl StateKey for CompactionStateKey
const KEY: &'static str = "__context_compaction"
type Value = CompactionState
type Update = CompactionAction
fn apply(value: &mut Self::Value, update: Self::Update)
Source§const MERGE: MergeStrategy = MergeStrategy::Exclusive
const MERGE: MergeStrategy = MergeStrategy::Exclusive
Parallel merge strategy. Default:
Exclusive (conflict on concurrent writes).fn encode(value: &Self::Value) -> Result<Value, StateError>
fn decode(value: Value) -> Result<Self::Value, StateError>
Auto Trait Implementations§
impl Freeze for CompactionStateKey
impl RefUnwindSafe for CompactionStateKey
impl Send for CompactionStateKey
impl Sync for CompactionStateKey
impl Unpin for CompactionStateKey
impl UnsafeUnpin for CompactionStateKey
impl UnwindSafe for CompactionStateKey
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