pub struct SmartDeviceTimestamp(pub u32);
Expand description
Represents a timestamp on a Smart device’s internal clock.
This type offers no guarantees that the device’s clock is in sync with the internal
clock of the Brain, and thus cannot be safely compared with vexide_core::time::Instant
s.
There is additionally no guarantee that this is in sync with other Smart devices,
or even the same device if a disconnect occurred causing the clock to reset. As such,
this is effectively a wrapper of u32
.
§Precision
This type has a precision of 1 millisecond.
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Clone for SmartDeviceTimestamp
impl Clone for SmartDeviceTimestamp
Source§fn clone(&self) -> SmartDeviceTimestamp
fn clone(&self) -> SmartDeviceTimestamp
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SmartDeviceTimestamp
impl Debug for SmartDeviceTimestamp
Source§impl Hash for SmartDeviceTimestamp
impl Hash for SmartDeviceTimestamp
Source§impl Ord for SmartDeviceTimestamp
impl Ord for SmartDeviceTimestamp
Source§fn cmp(&self, other: &SmartDeviceTimestamp) -> Ordering
fn cmp(&self, other: &SmartDeviceTimestamp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SmartDeviceTimestamp
impl PartialEq for SmartDeviceTimestamp
Source§impl PartialOrd for SmartDeviceTimestamp
impl PartialOrd for SmartDeviceTimestamp
impl Copy for SmartDeviceTimestamp
impl Eq for SmartDeviceTimestamp
impl StructuralPartialEq for SmartDeviceTimestamp
Auto Trait Implementations§
impl Freeze for SmartDeviceTimestamp
impl RefUnwindSafe for SmartDeviceTimestamp
impl Send for SmartDeviceTimestamp
impl Sync for SmartDeviceTimestamp
impl Unpin for SmartDeviceTimestamp
impl UnwindSafe for SmartDeviceTimestamp
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