pub struct StoreRuntime { /* private fields */ }Implementations§
Source§impl StoreRuntime
impl StoreRuntime
pub fn new(resources: Resources) -> Self
pub fn for_application(resources: &Resources) -> Self
pub fn set_wake(&self, wake: UiWake)
pub fn clear_wake(&self)
pub fn read<T, R>(&self, read: impl FnOnce(&T) -> R) -> Rwhere
T: StoreUnit,
pub fn read_defined<T, R>( &self, definition: StoreDefinition<T>, read: impl FnOnce(&T) -> R, ) -> R
pub fn update<T, R>(
&self,
reason: impl Into<Cow<'static, str>>,
mutate: impl FnOnce(&mut T) -> R,
) -> Rwhere
T: StoreUnit,
pub fn update_defined<T, R>( &self, definition: StoreDefinition<T>, reason: impl Into<Cow<'static, str>>, mutate: impl FnOnce(&mut T) -> R, ) -> R
pub fn subscribe( &self, subscription: Subscription, observer: Arc<dyn StoreObserver>, ) -> SubscriptionToken
pub fn unsubscribe(&self, token: SubscriptionToken) -> bool
Auto Trait Implementations§
impl !Freeze for StoreRuntime
impl Forget for StoreRuntime
impl Move for StoreRuntime
impl RefUnwindSafe for StoreRuntime
impl Send for StoreRuntime
impl Sync for StoreRuntime
impl Unpin for StoreRuntime
impl UnsafeUnpin for StoreRuntime
impl UnwindSafe for StoreRuntime
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