pub struct Fix<T> {
pub value: T,
pub age: Duration,
pub freshness: Freshness,
}Expand description
A value, with everything needed to judge it.
Fields§
§value: TWhat was measured.
age: DurationHow long ago it arrived, by the receiving clock.
freshness: FreshnessWhether that is within its source’s limit.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Fix<T>
impl<T: PartialEq> StructuralPartialEq for Fix<T>
Auto Trait Implementations§
impl<T> Freeze for Fix<T>where
T: Freeze,
impl<T> RefUnwindSafe for Fix<T>where
T: RefUnwindSafe,
impl<T> Send for Fix<T>where
T: Send,
impl<T> Sync for Fix<T>where
T: Sync,
impl<T> Unpin for Fix<T>where
T: Unpin,
impl<T> UnsafeUnpin for Fix<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Fix<T>where
T: UnwindSafe,
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