pub struct ActiveAgentKey;Expand description
State key for the handoff state.
Trait Implementations§
Source§impl StateKey for ActiveAgentKey
impl StateKey for ActiveAgentKey
const KEY: &'static str = "agent_handoff"
type Value = HandoffState
type Update = HandoffAction
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 ActiveAgentKey
impl RefUnwindSafe for ActiveAgentKey
impl Send for ActiveAgentKey
impl Sync for ActiveAgentKey
impl Unpin for ActiveAgentKey
impl UnsafeUnpin for ActiveAgentKey
impl UnwindSafe for ActiveAgentKey
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