Struct ds323x::WeekdayAlarm2
source · pub struct WeekdayAlarm2 {
pub weekday: u8,
pub hour: Hours,
pub minute: u8,
}
Expand description
Parameters for setting Alarm2 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:
- Minute and hour: 0
- Weekday: 1
Fields§
§weekday: u8
Weekday [1-7]
hour: Hours
Hour
minute: u8
Minute [0-59]
Trait Implementations§
source§impl Clone for WeekdayAlarm2
impl Clone for WeekdayAlarm2
source§fn clone(&self) -> WeekdayAlarm2
fn clone(&self) -> WeekdayAlarm2
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 WeekdayAlarm2
impl Debug for WeekdayAlarm2
source§impl PartialEq<WeekdayAlarm2> for WeekdayAlarm2
impl PartialEq<WeekdayAlarm2> for WeekdayAlarm2
source§fn eq(&self, other: &WeekdayAlarm2) -> bool
fn eq(&self, other: &WeekdayAlarm2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WeekdayAlarm2
impl StructuralPartialEq for WeekdayAlarm2
Auto Trait Implementations§
impl RefUnwindSafe for WeekdayAlarm2
impl Send for WeekdayAlarm2
impl Sync for WeekdayAlarm2
impl Unpin for WeekdayAlarm2
impl UnwindSafe for WeekdayAlarm2
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