Struct rp2040_combined::app::Mono
source · pub struct Mono;
Expand description
A Monotonic
based on the RP2040 Timer peripheral.
Implementations§
Trait Implementations§
source§impl DelayNs for Mono
impl DelayNs for Mono
source§fn delay_ns(&mut self, ns: u32)
fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns
nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.source§impl DelayNs for Mono
impl DelayNs for Mono
source§async fn delay_ns(&mut self, ns: u32)
async fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns
nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Auto Trait Implementations§
impl Freeze for Mono
impl RefUnwindSafe for Mono
impl Send for Mono
impl Sync for Mono
impl Unpin for Mono
impl UnwindSafe for Mono
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
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
§impl<T> Monotonic for Twhere
T: TimerQueueBasedMonotonic,
impl<T> Monotonic for Twhere
T: TimerQueueBasedMonotonic,
§type Instant = <T as TimerQueueBasedMonotonic>::Instant
type Instant = <T as TimerQueueBasedMonotonic>::Instant
The type for instant, defining an instant in time. Read more
§type Duration = <T as TimerQueueBasedMonotonic>::Duration
type Duration = <T as TimerQueueBasedMonotonic>::Duration
The type for duration, defining a duration of time. Read more
§async fn delay_until(instant: <T as Monotonic>::Instant)
async fn delay_until(instant: <T as Monotonic>::Instant)
Delay to some specific time instant.