pub enum LockNotification {
Acquired {
agent_id: String,
resource_type: ResourceType,
scope: ResourceScope,
},
Released {
agent_id: String,
resource_type: ResourceType,
scope: ResourceScope,
},
Stale {
agent_id: String,
resource_type: ResourceType,
scope: ResourceScope,
},
}Expand description
Notification events for lock state changes
Variants§
Acquired
Lock was acquired
Released
Lock was released
Fields
§
resource_type: ResourceTypeType of resource unlocked.
§
scope: ResourceScopeScope of the lock.
Stale
Lock became stale (holder stopped sending heartbeats)
Fields
§
resource_type: ResourceTypeType of stale resource lock.
§
scope: ResourceScopeScope of the stale lock.
Trait Implementations§
Source§impl Clone for LockNotification
impl Clone for LockNotification
Source§fn clone(&self) -> LockNotification
fn clone(&self) -> LockNotification
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 LockNotification
impl RefUnwindSafe for LockNotification
impl Send for LockNotification
impl Sync for LockNotification
impl Unpin for LockNotification
impl UnsafeUnpin for LockNotification
impl UnwindSafe for LockNotification
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