enum AsyncSleep<const HZ: u32> {
NeverPolled(NascentAsyncSleep<HZ>),
Running(RunningAsyncSleep<HZ>),
}
Available on
riot_module_ztimer
only.Variants§
NeverPolled(NascentAsyncSleep<HZ>)
Running(RunningAsyncSleep<HZ>)
Implementations§
Source§impl<const HZ: u32> AsyncSleep<HZ>
impl<const HZ: u32> AsyncSleep<HZ>
fn project<'pin>(self: Pin<&'pin mut Self>) -> ProjectedAsyncSleep<'pin, HZ>
Trait Implementations§
Source§impl<const HZ: u32> Future for AsyncSleep<HZ>
impl<const HZ: u32> Future for AsyncSleep<HZ>
impl<'pin, const HZ: u32> Unpin for AsyncSleep<HZ>where
PinnedFieldsOf<__AsyncSleep<'pin, HZ>>: Unpin,
Auto Trait Implementations§
impl<const HZ: u32> Freeze for AsyncSleep<HZ>
impl<const HZ: u32> RefUnwindSafe for AsyncSleep<HZ>
impl<const HZ: u32> !Send for AsyncSleep<HZ>
impl<const HZ: u32> !Sync for AsyncSleep<HZ>
impl<const HZ: u32> UnwindSafe for AsyncSleep<HZ>
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 28 bytes
Size for each variant:
NeverPolled
: 12 bytesRunning
: 28 bytes