pub trait ContainsInstanceStateGuard {
// Required method
fn raw_lock_guard(&self) -> Arc<LockFileGuard>;
}
Available on crate feature
state-dir
only.Expand description
Objects that co-own a lock on an instance
Each type implementing this trait mutually excludes independently-acquired
InstanceStateHandle
s, and anything derived from them
(including, therefore, ContainsInstanceStateGuard
implementors
with independent provenance.)
Required Methods§
sourcefn raw_lock_guard(&self) -> Arc<LockFileGuard>
fn raw_lock_guard(&self) -> Arc<LockFileGuard>
Obtain a raw clone of the underlying filesystem lock
This lock (and clones of it) will mutually exclude re-acquisition of the same instance.