pub struct TimelineEstimator<T: TimeFetcher> { /* private fields */ }Implementations§
Source§impl<T: TimeFetcher> TimelineEstimator<T>
impl<T: TimeFetcher> TimelineEstimator<T>
pub fn new(time_fetcher: T) -> Self
pub fn max_timeline_size(&self) -> u64
pub fn timeline_overflows(&self) -> u64
Sourcepub fn boot_time_to_monotonic_time(
&mut self,
boot_time: BootInstant,
) -> MonotonicInstant
pub fn boot_time_to_monotonic_time( &mut self, boot_time: BootInstant, ) -> MonotonicInstant
Converts a boot time in nanoseconds to a monotonic time in nanoseconds.
Trait Implementations§
Source§impl<T: Debug + TimeFetcher> Debug for TimelineEstimator<T>
impl<T: Debug + TimeFetcher> Debug for TimelineEstimator<T>
Source§impl<T: Default + TimeFetcher> Default for TimelineEstimator<T>
impl<T: Default + TimeFetcher> Default for TimelineEstimator<T>
Source§fn default() -> TimelineEstimator<T>
fn default() -> TimelineEstimator<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for TimelineEstimator<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimelineEstimator<T>where
T: RefUnwindSafe,
impl<T> Send for TimelineEstimator<T>where
T: Send,
impl<T> Sync for TimelineEstimator<T>where
T: Sync,
impl<T> Unpin for TimelineEstimator<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimelineEstimator<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimelineEstimator<T>where
T: UnwindSafe,
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