pub struct CheckTiming {
pub time: PartialComplexTime,
pub minimum_wait: Option<Duration>,
}
Expand description
The fields used to describe the timing of the next update check.
This exists as a separate type mostly so that it can be moved around atomically, in a little bit
neater fashion than it could be if it was a tuple of (PartialComplexTime, Option<Duration>)
.
Fields§
§time: PartialComplexTime
The upper time bounds on when it should be performed (expressed as along those timelines that are valid based on currently known time quality).
minimum_wait: Option<Duration>
The minimum wait until the next check, regardless of the wall or monotonic time it should be
performed at. This is handled separately as it creates a lower bound vs. the upper bound(s)
that the time
field provides.
Implementations§
Trait Implementations§
Source§impl Clone for CheckTiming
impl Clone for CheckTiming
Source§fn clone(&self) -> CheckTiming
fn clone(&self) -> CheckTiming
Returns a copy 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 Debug for CheckTiming
impl Debug for CheckTiming
Source§impl Display for CheckTiming
impl Display for CheckTiming
Source§impl PartialEq for CheckTiming
impl PartialEq for CheckTiming
impl Copy for CheckTiming
impl Eq for CheckTiming
impl StructuralPartialEq for CheckTiming
Auto Trait Implementations§
impl Freeze for CheckTiming
impl RefUnwindSafe for CheckTiming
impl Send for CheckTiming
impl Sync for CheckTiming
impl Unpin for CheckTiming
impl UnwindSafe for CheckTiming
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
)