pub struct ClockFrame {
pub local_date: Date,
pub local_time: Time,
pub utc_offset: i16,
pub daylight_savings_status: bool,
}Expand description
One coherent sample of the Device clock.
Fields§
§local_date: DateDevice local date.
local_time: TimeDevice local time.
utc_offset: i16Signed minutes west of UTC.
daylight_savings_status: boolWhether daylight-saving time is currently applied.
Implementations§
Source§impl ClockFrame
impl ClockFrame
Sourcepub fn day_of_week(self) -> Option<DaysOfWeek>
pub fn day_of_week(self) -> Option<DaysOfWeek>
Return this frame’s day of the week as a single DaysOfWeek flag,
or None for an unavailable/invalid day-of-week value.
Sourcepub fn is_valid_actual_datetime(self) -> bool
pub fn is_valid_actual_datetime(self) -> bool
Whether this frame is a fully specified, internally consistent Device DateTime suitable for timestamping notifications.
Trait Implementations§
Source§impl Clone for ClockFrame
impl Clone for ClockFrame
impl Copy for ClockFrame
Source§impl Debug for ClockFrame
impl Debug for ClockFrame
impl Eq for ClockFrame
Source§impl PartialEq for ClockFrame
impl PartialEq for ClockFrame
impl StructuralPartialEq for ClockFrame
Auto Trait Implementations§
impl Freeze for ClockFrame
impl RefUnwindSafe for ClockFrame
impl Send for ClockFrame
impl Sync for ClockFrame
impl Unpin for ClockFrame
impl UnsafeUnpin for ClockFrame
impl UnwindSafe for ClockFrame
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