pub enum Freshness {
Fresh,
Stale {
by: Duration,
},
Unbounded,
}Expand description
How old a value is, measured against its staleness bound (ridl §9).
Variants§
Fresh
Within the bound.
Stale
Older than the bound.
Unbounded
The value has no staleness bound: its member’s timing has no max, as
under @[1s..]. A signal with no @ annotation is not unbounded,
because it receives the default range (ridl §9.1).
Trait Implementations§
impl Copy for Freshness
impl Eq for Freshness
impl StructuralPartialEq for Freshness
Auto Trait Implementations§
impl Freeze for Freshness
impl RefUnwindSafe for Freshness
impl Send for Freshness
impl Sync for Freshness
impl Unpin for Freshness
impl UnsafeUnpin for Freshness
impl UnwindSafe for Freshness
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