Trait Scheduler

Source
pub trait Scheduler {
    // Required method
    fn activations(&self) -> Rc<RefCell<Activations>>;

    // Provided methods
    fn activator_for(&self, path: &[usize]) -> Activator { ... }
    fn sync_activator_for(&self, path: &[usize]) -> SyncActivator { ... }
}
Expand description

Methods for types which schedule fibers.

Required Methods§

Source

fn activations(&self) -> Rc<RefCell<Activations>>

Provides a shared handle to the activation scheduler.

Provided Methods§

Source

fn activator_for(&self, path: &[usize]) -> Activator

Constructs an Activator tied to the specified operator address.

Source

fn sync_activator_for(&self, path: &[usize]) -> SyncActivator

Constructs a SyncActivator tied to the specified operator address.

Implementors§

Source§

impl<'a, G, T> Scheduler for Child<'a, G, T>

Source§

impl<A: Allocate> Scheduler for Worker<A>