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