Module power_manager_fake_time::utils
source · Modules
- Exports a convenience macro,
ok_or_default_err
, which acts as a wrapper forOption::ok_or
to provide a default Err value. The macro transforms an Optioninto a Result<T, E>, mapping Some(v) to Ok(v) and None to Err(“$var_name is None”).
Structs
- Convenient wrapper for creating and storing an integer histogram to use with Cobalt.
- Histogram configuration parameters used by CobaltIntHistogram.
Functions
- The number of nanoseconds since the system was powered on.