pub struct LockInfo {
pub plan_id: PlanId,
pub deliverable_id: String,
pub caller_id: CallerId,
pub acquired_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}Expand description
Snapshot of a held lock. The Planner records one LockInfo per
acquired deliverable and surfaces them in [Cohort::locks] and
PlanStatus::locks_held.
Fields§
§plan_id: PlanId§deliverable_id: String§caller_id: CallerId§acquired_at: DateTime<Utc>§expires_at: DateTime<Utc>TTL deadline. After this instant, the lock is treated as expired and the Planner is free to release it on any subsequent operation.
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