pub struct WatcherLock {
pub identity: ProcessIdentity,
pub created_at_unix: u64,
}Expand description
On-disk single-flight lock. Records who owns the watcher slot and when it was claimed. Serialized as pretty JSON so it is human-inspectable in the state dir.
Fields§
§identity: ProcessIdentity§created_at_unix: u64Trait Implementations§
Source§impl Clone for WatcherLock
impl Clone for WatcherLock
Source§fn clone(&self) -> WatcherLock
fn clone(&self) -> WatcherLock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatcherLock
impl Debug for WatcherLock
Source§impl<'de> Deserialize<'de> for WatcherLock
impl<'de> Deserialize<'de> for WatcherLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WatcherLock
Source§impl PartialEq for WatcherLock
impl PartialEq for WatcherLock
Source§fn eq(&self, other: &WatcherLock) -> bool
fn eq(&self, other: &WatcherLock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WatcherLock
impl Serialize for WatcherLock
impl StructuralPartialEq for WatcherLock
Auto Trait Implementations§
impl Freeze for WatcherLock
impl RefUnwindSafe for WatcherLock
impl Send for WatcherLock
impl Sync for WatcherLock
impl Unpin for WatcherLock
impl UnsafeUnpin for WatcherLock
impl UnwindSafe for WatcherLock
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