pub struct Versioned<T: Clone> {
pub value: T,
pub rev: u64,
pub updated_at: Instant,
pub origin: ControlOrigin,
}Expand description
A committed control value bundled with its metadata.
Fields§
§value: T§rev: u64Session-wide monotonic revision. Strictly increasing
across every successful write to every control sharing
a RevAllocator.
updated_at: InstantWall-clock time at which the commit happened.
origin: ControlOriginTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Versioned<T>where
T: Freeze,
impl<T> RefUnwindSafe for Versioned<T>where
T: RefUnwindSafe,
impl<T> Send for Versioned<T>where
T: Send,
impl<T> Sync for Versioned<T>where
T: Sync,
impl<T> Unpin for Versioned<T>where
T: Unpin,
impl<T> UnsafeUnpin for Versioned<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Versioned<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