Trait UtcDurationExt

Source
pub trait UtcDurationExt {
    // Required method
    fn to_boot_lossy(&self) -> Duration<BootTimeline>;
}
Expand description

Special methods that are only valid for UtcDuration.

Required Methods§

Source

fn to_boot_lossy(&self) -> Duration<BootTimeline>

Converts the reading of a duration on the UTC timeline to a reading on the boot timeline.

This is “lossy” because durations are usually differences of two Instants, and Boot time and UTC time mostly tick at the same rate. However, they aren’t required to tick in lock-step.

Implementors§