pub struct LockHolder {
pub owner: String,
pub pid: Option<u32>,
pub host: Option<String>,
pub started_at: i64,
pub heartbeat_at: i64,
}Expand description
The contents of .hayson.lock. owner is the only field ownership is decided on; pid and
host are diagnostics, present on unix and absent on platforms without processes.
Fields§
§owner: String§pid: Option<u32>§host: Option<String>§started_at: i64§heartbeat_at: i64Trait Implementations§
Source§impl Clone for LockHolder
impl Clone for LockHolder
Source§impl Debug for LockHolder
impl Debug for LockHolder
Source§impl<'de> Deserialize<'de> for LockHolder
impl<'de> Deserialize<'de> for LockHolder
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 LockHolder
Source§impl PartialEq for LockHolder
impl PartialEq for LockHolder
Source§impl Serialize for LockHolder
impl Serialize for LockHolder
impl StructuralPartialEq for LockHolder
Auto Trait Implementations§
impl Freeze for LockHolder
impl RefUnwindSafe for LockHolder
impl Send for LockHolder
impl Sync for LockHolder
impl Unpin for LockHolder
impl UnsafeUnpin for LockHolder
impl UnwindSafe for LockHolder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.