pub struct StoreLoader<M, S, V, P>{ /* private fields */ }Implementations§
Source§impl<M, S, V, P> StoreLoader<M, S, V, P>
impl<M, S, V, P> StoreLoader<M, S, V, P>
pub async fn load( migrator: M, persistor: P, target_version: usize, ) -> Result<Self>
pub async fn cloned(&self) -> Vwhere
V: Clone,
pub async fn version(&self) -> usize
pub async fn get<T>(&self, f: impl FnOnce(&V) -> T) -> T
pub async fn set(&self, f: impl FnOnce(&mut V)) -> Result<()>
Trait Implementations§
Source§impl<M, S, V, P> Clone for StoreLoader<M, S, V, P>
impl<M, S, V, P> Clone for StoreLoader<M, S, V, P>
Auto Trait Implementations§
impl<M, S, V, P> !RefUnwindSafe for StoreLoader<M, S, V, P>
impl<M, S, V, P> !UnwindSafe for StoreLoader<M, S, V, P>
impl<M, S, V, P> Forget for StoreLoader<M, S, V, P>
impl<M, S, V, P> Freeze for StoreLoader<M, S, V, P>
impl<M, S, V, P> Move for StoreLoader<M, S, V, P>
impl<M, S, V, P> Send for StoreLoader<M, S, V, P>
impl<M, S, V, P> Sync for StoreLoader<M, S, V, P>
impl<M, S, V, P> Unpin for StoreLoader<M, S, V, P>
impl<M, S, V, P> UnsafeUnpin for StoreLoader<M, S, V, P>where
*const ArcInner<LoaderState<M, S, Store<V>, P>> is !null: UnsafeUnpin,
PhantomData<ArcInner<LoaderState<M, S, Store<V>, P>>>: UnsafeUnpin,
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