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_bit(self) -> Option<u8>
pub fn day_of_week_bit(self) -> Option<u8>
Return the BACnetDaysOfWeek bit for this frame, 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
Source§fn clone(&self) -> ClockFrame
fn clone(&self) -> ClockFrame
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 moreimpl 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