pub trait TimeoutNs {
// Required methods
fn start_ns(timeout: u32) -> impl TimeoutState;
fn start_us(timeout: u32) -> impl TimeoutState;
fn start_ms(timeout: u32) -> impl TimeoutState;
// Provided methods
fn ns_with(timeout: u32, f: impl FnMut() -> bool) -> bool { ... }
fn us_with(timeout: u32, f: impl FnMut() -> bool) -> bool { ... }
fn ms_with(timeout: u32, f: impl FnMut() -> bool) -> bool { ... }
}Required Methods§
fn start_ns(timeout: u32) -> impl TimeoutState
fn start_us(timeout: u32) -> impl TimeoutState
fn start_ms(timeout: u32) -> impl TimeoutState
Provided Methods§
fn ns_with(timeout: u32, f: impl FnMut() -> bool) -> bool
fn us_with(timeout: u32, f: impl FnMut() -> bool) -> bool
fn ms_with(timeout: u32, f: impl FnMut() -> bool) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.