#[repr(C)]pub struct RealTimeClockTimeAbi {
pub version: u16,
pub valid: u8,
pub reserved: u8,
pub nanoseconds: u32,
pub seconds: i64,
}Expand description
UTC wall-clock time held by a real-time clock, plus its ABI version and validity. Field order keeps the struct free of padding on 32-bit and 64-bit targets: 16 bytes everywhere.
Fields§
§version: u16§valid: u8§reserved: u8§nanoseconds: u32Nanoseconds within the second, 0..MAX_NANOSECONDS.
seconds: i64Signed Unix seconds since 1970-01-01T00:00:00Z, without timezone or DST.
Trait Implementations§
Source§impl Clone for RealTimeClockTimeAbi
impl Clone for RealTimeClockTimeAbi
Source§fn clone(&self) -> RealTimeClockTimeAbi
fn clone(&self) -> RealTimeClockTimeAbi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealTimeClockTimeAbi
impl Debug for RealTimeClockTimeAbi
Source§impl Default for RealTimeClockTimeAbi
impl Default for RealTimeClockTimeAbi
Source§fn default() -> RealTimeClockTimeAbi
fn default() -> RealTimeClockTimeAbi
Returns the “default value” for a type. Read more
Source§impl PartialEq for RealTimeClockTimeAbi
impl PartialEq for RealTimeClockTimeAbi
Source§fn eq(&self, other: &RealTimeClockTimeAbi) -> bool
fn eq(&self, other: &RealTimeClockTimeAbi) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RealTimeClockTimeAbi
impl Eq for RealTimeClockTimeAbi
impl PlainData for RealTimeClockTimeAbi
impl StructuralPartialEq for RealTimeClockTimeAbi
Auto Trait Implementations§
impl Freeze for RealTimeClockTimeAbi
impl RefUnwindSafe for RealTimeClockTimeAbi
impl Send for RealTimeClockTimeAbi
impl Sync for RealTimeClockTimeAbi
impl Unpin for RealTimeClockTimeAbi
impl UnsafeUnpin for RealTimeClockTimeAbi
impl UnwindSafe for RealTimeClockTimeAbi
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