pub struct ExampleTimer {}Expand description
Timer mock
Trait Implementations§
Source§impl Default for ExampleTimer
impl Default for ExampleTimer
Source§fn default() -> ExampleTimer
fn default() -> ExampleTimer
Returns the “default value” for a type. Read more
Source§impl Timer<1000000> for ExampleTimer
impl Timer<1000000> for ExampleTimer
Source§fn now(&mut self) -> TimerInstantU32<1000000>
fn now(&mut self) -> TimerInstantU32<1000000>
Return current time
InstantSource§fn start(
&mut self,
_duration: TimerDurationU32<1000000>,
) -> Result<(), Self::Error>
fn start( &mut self, _duration: TimerDurationU32<1000000>, ) -> Result<(), Self::Error>
Start timer with a
durationAuto Trait Implementations§
impl Freeze for ExampleTimer
impl RefUnwindSafe for ExampleTimer
impl Send for ExampleTimer
impl Sync for ExampleTimer
impl Unpin for ExampleTimer
impl UnwindSafe for ExampleTimer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more