pub struct DeviceTime {
pub epoch: Option<u32>,
pub tz_offset_min: i16,
}Expand description
The wall clock of a CAP_TIME device.
Fields§
§epoch: Option<u32>PROP_TIME: Unix seconds, or None when the device does not know
what time it is. Unsigned, so the encoding is wrap-free into 2106.
tz_offset_min: i16PROP_TZ_OFFSET: minutes east of UTC. Always present — where the
device is meant to be is known even when the time is not.
Trait Implementations§
Source§impl Clone for DeviceTime
impl Clone for DeviceTime
Source§fn clone(&self) -> DeviceTime
fn clone(&self) -> DeviceTime
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceTime
impl Debug for DeviceTime
Source§impl PartialEq for DeviceTime
impl PartialEq for DeviceTime
impl Copy for DeviceTime
impl Eq for DeviceTime
impl StructuralPartialEq for DeviceTime
Auto Trait Implementations§
impl Freeze for DeviceTime
impl RefUnwindSafe for DeviceTime
impl Send for DeviceTime
impl Sync for DeviceTime
impl Unpin for DeviceTime
impl UnwindSafe for DeviceTime
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)