pub struct Value { /* private fields */ }Expand description
An instantaneous value.
record stores the last value (Java this.value = value); measure returns
it. The f64 is held as its bit pattern in an AtomicU64 so recording is
lock-free — the minimal Rust equivalent of Java guarding the field with the
sensor’s synchronized. The stored value is bit-for-bit identical to Java’s.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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