pub struct TimeZoneAdjustment { /* private fields */ }Expand description
Timezone adjustment.
Implementations§
Source§impl TimeZoneAdjustment
impl TimeZoneAdjustment
Sourcepub const fn new(adjustment_time: u64, offset: CompactDuration) -> Self
pub const fn new(adjustment_time: u64, offset: CompactDuration) -> Self
Create a new timezone adjustment.
Sourcepub fn adjustment_time(&self) -> u64
pub fn adjustment_time(&self) -> u64
Get the NTP time at which the adjustment is supposed to happen.
Sourcepub fn offset(&self) -> CompactDuration
pub fn offset(&self) -> CompactDuration
Get the adjustment offset.
Trait Implementations§
Source§impl Clone for TimeZoneAdjustment
impl Clone for TimeZoneAdjustment
Source§fn clone(&self) -> TimeZoneAdjustment
fn clone(&self) -> TimeZoneAdjustment
Returns a duplicate 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 Display for TimeZoneAdjustment
impl Display for TimeZoneAdjustment
Source§impl FromStr for TimeZoneAdjustment
impl FromStr for TimeZoneAdjustment
impl Copy for TimeZoneAdjustment
Auto Trait Implementations§
impl Freeze for TimeZoneAdjustment
impl RefUnwindSafe for TimeZoneAdjustment
impl Send for TimeZoneAdjustment
impl Sync for TimeZoneAdjustment
impl Unpin for TimeZoneAdjustment
impl UnwindSafe for TimeZoneAdjustment
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