Enum embassy_stm32::rtc::DateTimeError
source · pub enum DateTimeError {
InvalidYear,
InvalidMonth,
InvalidDay,
InvalidDayOfWeek(u8),
InvalidHour,
InvalidMinute,
InvalidSecond,
}
Expand description
Errors regarding the DateTime
struct.
Variants§
InvalidYear
The DateTime contains an invalid year value. Must be between 0..=4095
.
InvalidMonth
The DateTime contains an invalid month value. Must be between 1..=12
.
InvalidDay
The DateTime contains an invalid day value. Must be between 1..=31
.
InvalidDayOfWeek(u8)
The DateTime contains an invalid day of week. Must be between 0..=6
where 0 is Sunday.
InvalidHour
The DateTime contains an invalid hour value. Must be between 0..=23
.
InvalidMinute
The DateTime contains an invalid minute value. Must be between 0..=59
.
InvalidSecond
The DateTime contains an invalid second value. Must be between 0..=59
.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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