Trait wasefire_board_api::debug::Api
source · pub trait Api: Send {
const MAX_TIME: u64;
// Required methods
fn time() -> u64;
fn exit(success: bool) -> !;
// Provided method
fn println(line: &str) { ... }
}
Expand description
Debugging and testing interface.
Required Associated Constants§
sourceconst MAX_TIME: u64
const MAX_TIME: u64
Maximum value returned by Self::time()
before wrapping.
Required Methods§
sourcefn time() -> u64
fn time() -> u64
Returns the time in micro-seconds since some initial event.
This wraps once Self::MAX_TIME
is reached. In particular, a maximum value of zero
equivalent to not supporting this API.
Provided Methods§
Object Safety§
This trait is not object safe.