pub struct ClockConfig { /* private fields */ }Expand description
Validated civil-time settings for the bundled server clock.
Implementations§
Source§impl ClockConfig
impl ClockConfig
Sourcepub fn new(
utc_offset_minutes: i16,
daylight_savings_status: bool,
) -> Result<Self, Error>
pub fn new( utc_offset_minutes: i16, daylight_savings_status: bool, ) -> Result<Self, Error>
Configure signed minutes west of UTC and daylight-saving status.
Sourcepub fn utc_offset_minutes(self) -> i16
pub fn utc_offset_minutes(self) -> i16
Return the configured signed minutes west of UTC.
Sourcepub fn daylight_savings_status(self) -> bool
pub fn daylight_savings_status(self) -> bool
Return whether the one-hour daylight-saving adjustment is active.
Trait Implementations§
Source§impl Clone for ClockConfig
impl Clone for ClockConfig
impl Copy for ClockConfig
Source§impl Debug for ClockConfig
impl Debug for ClockConfig
Source§impl Default for ClockConfig
impl Default for ClockConfig
impl Eq for ClockConfig
Source§impl PartialEq for ClockConfig
impl PartialEq for ClockConfig
impl StructuralPartialEq for ClockConfig
Auto Trait Implementations§
impl Freeze for ClockConfig
impl RefUnwindSafe for ClockConfig
impl Send for ClockConfig
impl Sync for ClockConfig
impl Unpin for ClockConfig
impl UnsafeUnpin for ClockConfig
impl UnwindSafe for ClockConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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