pub struct StoreLock { /* private fields */ }Expand description
An exclusive writer lock. Dropping it unlocks and closes the OS handle. Readers use a separate shared lock so they can coexist with the writer.
Implementations§
Source§impl StoreLock
impl StoreLock
Sourcepub fn closing_guard(&self) -> StoreClosingGuard
pub fn closing_guard(&self) -> StoreClosingGuard
Mark this instance as closing when the caller’s owning scope ends. This guard does not retain the OS lock or any database connection.
Sourcepub fn settings(&self) -> Result<StoreSettings, SettingsError>
pub fn settings(&self) -> Result<StoreSettings, SettingsError>
Read the settings while holding the store’s writer lock.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreLock
impl RefUnwindSafe for StoreLock
impl Send for StoreLock
impl Sync for StoreLock
impl Unpin for StoreLock
impl UnsafeUnpin for StoreLock
impl UnwindSafe for StoreLock
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