pub struct QuiescenceGuard { /* private fields */ }Expand description
Fresh non-spawning exclusive custody over an exact existing regular sidecar.
Drop explicitly unlocks, including transient duplicated/inherited copies of this guard. Unlike command custody, this guard cannot intentionally dispatch.
Implementations§
Source§impl QuiescenceGuard
impl QuiescenceGuard
Sourcepub fn acquire(
path: &Path,
expected: FileIdentity,
) -> Result<Self, CustodyError>
pub fn acquire( path: &Path, expected: FileIdentity, ) -> Result<Self, CustodyError>
Admit the retained identity before locking, then recheck the opened descriptor.
Missing sidecars are never created. A different regular inode rejects before lock contention can obscure replacement. Special entries use Host FS admission.
§Errors
Returns active custody, replacement, missing/unsafe entries or native I/O errors.
Sourcepub const fn identity(&self) -> FileIdentity
pub const fn identity(&self) -> FileIdentity
Read the exact admitted identity.
Trait Implementations§
Source§impl Debug for QuiescenceGuard
impl Debug for QuiescenceGuard
Source§impl Drop for QuiescenceGuard
impl Drop for QuiescenceGuard
Auto Trait Implementations§
impl Freeze for QuiescenceGuard
impl RefUnwindSafe for QuiescenceGuard
impl Send for QuiescenceGuard
impl Sync for QuiescenceGuard
impl Unpin for QuiescenceGuard
impl UnsafeUnpin for QuiescenceGuard
impl UnwindSafe for QuiescenceGuard
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