Struct drone::routine::RoutineList
[−]
[src]
pub struct RoutineList { /* fields omitted */ }
Linked list of routines.
Methods
impl RoutineList
[src]
const fn vacant() -> Self
[src]
Constructs a vacant link.
const fn new(ptr: *mut Routine) -> Self
[src]
Constructs an occupied link.
unsafe fn invoke(&mut self)
[src]
fn push<G>(&mut self, g: G) where
G: Generator<Yield = (), Return = ()> + Send + 'static,
[src]
G: Generator<Yield = (), Return = ()> + Send + 'static,
Adds generator g
first in the routine chain.
fn push_callback<F>(&mut self, f: F) where
F: FnOnce() + Send + 'static,
[src]
F: FnOnce() + Send + 'static,
Adds closure f
first in the routine chain.