pub struct TaskNode<'curr, 'next> {
pub future: Pin<Box<dyn Future<Output = ()> + 'curr>>,
pub interval: u64,
pub next_run_time: u64,
pub next: Option<&'next mut TaskNode<'curr, 'next>>,
}Available on crate feature
nano-alloc only.Expand description
A node in a linked-list representing an asynchronous task.
§Lifetimes
'curr: The lifetime of the future’s internal data.'next: The lifetime of the reference to the next node in the list.
tip: 'curr is longer than 'next.
Fields§
§future: Pin<Box<dyn Future<Output = ()> + 'curr>>The pinned asynchronous computation to be executed.
interval: u64The execution interval, converted into hardware ticks.
next_run_time: u64The timestamp (in ticks) when this task should run again.
next: Option<&'next mut TaskNode<'curr, 'next>>Link to the next task in the executor’s chain.
Implementations§
Auto Trait Implementations§
impl<'curr, 'next> Freeze for TaskNode<'curr, 'next>
impl<'curr, 'next> !RefUnwindSafe for TaskNode<'curr, 'next>
impl<'curr, 'next> !Send for TaskNode<'curr, 'next>
impl<'curr, 'next> !Sync for TaskNode<'curr, 'next>
impl<'curr, 'next> Unpin for TaskNode<'curr, 'next>
impl<'curr, 'next> !UnwindSafe for TaskNode<'curr, 'next>
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