pub enum DstPolicy {
Skip,
ShiftForward,
WallClock,
}Expand description
Policy for handling events that fall during DST transitions.
Variants§
Skip
Skip instances that fall in the DST gap (e.g., 2:30 AM during spring forward)
ShiftForward
Shift to the next valid time after the gap
WallClock
Use wall clock time (maintain local time, adjust UTC offset)
Trait Implementations§
impl Copy for DstPolicy
impl StructuralPartialEq for DstPolicy
Auto Trait Implementations§
impl Freeze for DstPolicy
impl RefUnwindSafe for DstPolicy
impl Send for DstPolicy
impl Sync for DstPolicy
impl Unpin for DstPolicy
impl UnsafeUnpin for DstPolicy
impl UnwindSafe for DstPolicy
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