pub struct ResourceLockInfo {
pub agent_id: String,
pub resource_type: ResourceType,
pub scope: ResourceScope,
pub acquired_at: Instant,
pub operation_id: Option<String>,
pub description: String,
pub status: String,
}Expand description
Information about a held resource lock
Fields§
§agent_id: StringID of the agent holding the lock
resource_type: ResourceTypeType of resource locked
scope: ResourceScopeScope of the lock
acquired_at: InstantWhen the lock was acquired
operation_id: Option<String>Operation ID for liveness tracking (replaces timeout)
description: StringDescription of the operation
status: StringCurrent status message
Implementations§
Trait Implementations§
Source§impl Clone for ResourceLockInfo
impl Clone for ResourceLockInfo
Source§fn clone(&self) -> ResourceLockInfo
fn clone(&self) -> ResourceLockInfo
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 moreAuto Trait Implementations§
impl Freeze for ResourceLockInfo
impl RefUnwindSafe for ResourceLockInfo
impl Send for ResourceLockInfo
impl Sync for ResourceLockInfo
impl Unpin for ResourceLockInfo
impl UnsafeUnpin for ResourceLockInfo
impl UnwindSafe for ResourceLockInfo
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