pub enum State {
Available,
Held {
retainer: Retainer,
expiry: Timestamp,
},
Deferred {
reclaimable_at: Timestamp,
},
Settled,
}Expand description
A pact’s position in its claim lifecycle: the pure state a backend stores per pact. The backend owns where it lives; this owns what it means.
Variants§
Available
Never claimed, or freshly seeded: immediately claimable.
Held
Held under a lease by retainer until expiry. Claimable again only once
the lease has lapsed (expiry < now), which rotates authority away.
Fields
Deferred
Released non-terminally: claimable again only at or after reclaimable_at.
Settled
Concluded (fulfilled or breached): never claimable again.
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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