Struct ds323x::WeekdayAlarm1
source · pub struct WeekdayAlarm1 {
pub weekday: u8,
pub hour: Hours,
pub minute: u8,
pub second: u8,
}
Expand description
Parameters for setting Alarm1 on a weekday
Depending on the matching strategy, some fields may not be relevant. In this case, invalid values are ignored and the minimum valid values are used instead to configure the alarm:
- Second, minute and hour: 0
- Weekday: 1
Fields§
§weekday: u8
Weekday [1-7]
hour: Hours
Hour
minute: u8
Minute [0-59]
second: u8
Second [0-59]
Trait Implementations§
source§impl Clone for WeekdayAlarm1
impl Clone for WeekdayAlarm1
source§fn clone(&self) -> WeekdayAlarm1
fn clone(&self) -> WeekdayAlarm1
Returns a copy of the value. Read more
1.0.0 · 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 WeekdayAlarm1
impl Debug for WeekdayAlarm1
source§impl PartialEq<WeekdayAlarm1> for WeekdayAlarm1
impl PartialEq<WeekdayAlarm1> for WeekdayAlarm1
source§fn eq(&self, other: &WeekdayAlarm1) -> bool
fn eq(&self, other: &WeekdayAlarm1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WeekdayAlarm1
impl StructuralPartialEq for WeekdayAlarm1
Auto Trait Implementations§
impl RefUnwindSafe for WeekdayAlarm1
impl Send for WeekdayAlarm1
impl Sync for WeekdayAlarm1
impl Unpin for WeekdayAlarm1
impl UnwindSafe for WeekdayAlarm1
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