pub struct LockInfo {
pub agent_id: String,
pub resource_type: ResourceLockType,
pub scope: String,
pub description: String,
pub status: String,
pub held_for_secs: u64,
}Expand description
Information about a lock (for IPC)
Fields§
§agent_id: StringAgent holding the lock
resource_type: ResourceLockTypeResource type
scope: StringScope (global or project path)
description: StringDescription of operation
status: StringCurrent status message
held_for_secs: u64Seconds since lock was acquired
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockInfo
impl<'de> Deserialize<'de> for LockInfo
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
Auto Trait Implementations§
impl Freeze for LockInfo
impl RefUnwindSafe for LockInfo
impl Send for LockInfo
impl Sync for LockInfo
impl Unpin for LockInfo
impl UnsafeUnpin for LockInfo
impl UnwindSafe for LockInfo
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