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ยง
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementationsยง
impl Freeze for Error
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)