pub struct ExclusiveFence { /* private fields */ }Expand description
The exclusive side of the maintenance fence for one database file.
Acquiring it waits for outstanding OperationGuards to drain (bounded
by deadline); holding it makes every subsequent guarded operation fail
typed. The Phase 6 migration machinery composes one of these per database
file it intends to touch, across both candidate roots.
Implementations§
Source§impl ExclusiveFence
impl ExclusiveFence
Sourcepub fn try_acquire(db_path: &Path) -> Result<Option<Self>, SqliteStoreError>
pub fn try_acquire(db_path: &Path) -> Result<Option<Self>, SqliteStoreError>
Try to take the fence without waiting.
Trait Implementations§
Source§impl Debug for ExclusiveFence
impl Debug for ExclusiveFence
Source§impl Drop for ExclusiveFence
impl Drop for ExclusiveFence
Auto Trait Implementations§
impl Freeze for ExclusiveFence
impl RefUnwindSafe for ExclusiveFence
impl Send for ExclusiveFence
impl Sync for ExclusiveFence
impl Unpin for ExclusiveFence
impl UnsafeUnpin for ExclusiveFence
impl UnwindSafe for ExclusiveFence
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