pub struct BackgroundTaskViewKey;Expand description
State key for the cached background task view.
Trait Implementations§
Source§impl StateKey for BackgroundTaskViewKey
impl StateKey for BackgroundTaskViewKey
const KEY: &'static str = "background_tasks"
type Value = BackgroundTaskView
type Update = BackgroundTaskViewAction
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 BackgroundTaskViewKey
impl RefUnwindSafe for BackgroundTaskViewKey
impl Send for BackgroundTaskViewKey
impl Sync for BackgroundTaskViewKey
impl Unpin for BackgroundTaskViewKey
impl UnsafeUnpin for BackgroundTaskViewKey
impl UnwindSafe for BackgroundTaskViewKey
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