pub struct LockStatus {
pub agent_id: String,
pub resource_type: ResourceType,
pub scope: ResourceScope,
pub acquired_at_secs_ago: u64,
pub is_alive: bool,
pub description: String,
pub status: String,
pub operation_id: Option<String>,
pub operation_status: Option<OperationStatus>,
}Expand description
Detailed status of a lock (for querying)
Fields§
§agent_id: StringAgent holding the lock
resource_type: ResourceTypeType of resource locked
scope: ResourceScopeScope of the lock
acquired_at_secs_ago: u64Seconds since lock was acquired
is_alive: boolWhether the lock holder is still alive
description: StringDescription of the operation
status: StringCurrent status message
operation_id: Option<String>Operation ID if tracked
operation_status: Option<OperationStatus>Detailed operation status if available
Trait Implementations§
Source§impl Clone for LockStatus
impl Clone for LockStatus
Source§fn clone(&self) -> LockStatus
fn clone(&self) -> LockStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LockStatus
impl RefUnwindSafe for LockStatus
impl Send for LockStatus
impl Sync for LockStatus
impl Unpin for LockStatus
impl UnsafeUnpin for LockStatus
impl UnwindSafe for LockStatus
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