pub trait IntoNanoseconds {
    // Required method
    fn into_nanos(self) -> u64;
}
Expand description

Type which can be converted into a nanosecond representation.

This allows users of Mock to increment/decrement the time both with raw integer values and the more convenient Duration type.

Required Methods§

source

fn into_nanos(self) -> u64

Consumes this value, converting it to a nanosecond representation.

Implementations on Foreign Types§

source§

impl IntoNanoseconds for u64

source§

impl IntoNanoseconds for Duration

Implementors§