Trait eggtimer::ToDuration
source · pub trait ToDuration {
fn to_duration(&self) -> Duration;
}
Expand description
A trait for types that can be turned into a Duration
Required Methods
sourcefn to_duration(&self) -> Duration
fn to_duration(&self) -> Duration
Convert the value into the Duration