pub struct PendingWorkKey;Trait Implementations§
Source§impl StateKey for PendingWorkKey
impl StateKey for PendingWorkKey
const KEY: &'static str = "__runtime.pending_work"
type Value = PendingWorkState
type Update = bool
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 PendingWorkKey
impl RefUnwindSafe for PendingWorkKey
impl Send for PendingWorkKey
impl Sync for PendingWorkKey
impl Unpin for PendingWorkKey
impl UnsafeUnpin for PendingWorkKey
impl UnwindSafe for PendingWorkKey
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