#[repr(align(8))]pub struct TimerQueueItem { /* private fields */ }
Expand description
The timer queue item provided by the executor.
This type is opaque, it only provides the raw storage for a queue item. The queue implementation
is responsible for reinterpreting the contents of the item using TimerQueueItem::as_ref
and
TimerQueueItem::as_mut
.
Implementations§
Source§impl TimerQueueItem
impl TimerQueueItem
Sourcepub unsafe fn from_embassy_waker(waker: &Waker) -> &'static mut Self
pub unsafe fn from_embassy_waker(waker: &Waker) -> &'static mut Self
Retrieves the TimerQueueItem
reference that belongs to the task of the waker.
Panics if called with a non-embassy waker.
§Safety
The caller must ensure they are not violating Rust’s aliasing rules - it is not allowed
to use this method to create multiple mutable references to the same TimerQueueItem
at
the same time.
This function must only be called in the context of a timer queue implementation.
Auto Trait Implementations§
impl Freeze for TimerQueueItem
impl RefUnwindSafe for TimerQueueItem
impl Send for TimerQueueItem
impl Sync for TimerQueueItem
impl Unpin for TimerQueueItem
impl UnwindSafe for TimerQueueItem
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