pub enum ResolutionStatus {
Resolved,
Indefinite,
Pending {
seconds_remaining: i64,
},
Breached {
on_deadline: DeadlineEvent,
seconds_overdue: i64,
},
BadDeadline,
}Expand description
Whether an effect is still owed a resolution, and whether it is overdue.
Variants§
Resolved
The lifecycle reached a terminal state; a deadline is moot.
Indefinite
Unresolved with no declared deadline. Reported rather than passed over: this is precisely the pending-forever shape, and staying quiet about it is what let it survive unnoticed in the first place.
Pending
Unresolved and inside its declared window.
Breached
Unresolved and past its deadline. Carries the event the declaring party committed to, so a consumer knows which obligation it inherited.
BadDeadline
A deadline was declared but does not parse, so nothing can be concluded from it. Fails toward “unknown”, never toward “in window”.
Trait Implementations§
Source§impl Clone for ResolutionStatus
impl Clone for ResolutionStatus
Source§fn clone(&self) -> ResolutionStatus
fn clone(&self) -> ResolutionStatus
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 moreSource§impl Debug for ResolutionStatus
impl Debug for ResolutionStatus
impl Eq for ResolutionStatus
Source§impl PartialEq for ResolutionStatus
impl PartialEq for ResolutionStatus
impl StructuralPartialEq for ResolutionStatus
Auto Trait Implementations§
impl Freeze for ResolutionStatus
impl RefUnwindSafe for ResolutionStatus
impl Send for ResolutionStatus
impl Sync for ResolutionStatus
impl Unpin for ResolutionStatus
impl UnsafeUnpin for ResolutionStatus
impl UnwindSafe for ResolutionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.