pub struct ModelStoreMutationGuard<Mode> { /* private fields */ }Implementations§
Source§impl ModelStoreMutationGuard<ExclusiveAccess>
impl ModelStoreMutationGuard<ExclusiveAccess>
pub fn acquire_exclusive( models_dir: &Path, profile_id: ModelStoreProfileId, timeout: Duration, ) -> Result<Self, ModelStoreLockError>
Source§impl<Mode> ModelStoreMutationGuard<Mode>
impl<Mode> ModelStoreMutationGuard<Mode>
pub fn profile_id(&self) -> &ModelStoreProfileId
pub fn lock_path(&self) -> &Path
Trait Implementations§
Source§impl<Mode: Debug> Debug for ModelStoreMutationGuard<Mode>
impl<Mode: Debug> Debug for ModelStoreMutationGuard<Mode>
Source§impl<Mode> Drop for ModelStoreMutationGuard<Mode>
impl<Mode> Drop for ModelStoreMutationGuard<Mode>
Auto Trait Implementations§
impl<Mode> Freeze for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: Freeze,
impl<Mode> RefUnwindSafe for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: RefUnwindSafe,
impl<Mode> Send for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: Send,
impl<Mode> Sync for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: Sync,
impl<Mode> Unpin for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: Unpin,
impl<Mode> UnsafeUnpin for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: UnsafeUnpin,
impl<Mode> UnwindSafe for ModelStoreMutationGuard<Mode>where
PhantomData<Mode>: UnwindSafe,
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