Trait timely::scheduling::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>