pub trait Scheduler {
// Required method
fn activations(&self) -> Rc<RefCell<Activations>>;
// Provided methods
fn activator_for(&self, path: Rc<[usize]>) -> Activator { ... }
fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator { ... }
}
Expand description
Methods for types which schedule fibers.
Required Methods§
Sourcefn activations(&self) -> Rc<RefCell<Activations>>
fn activations(&self) -> Rc<RefCell<Activations>>
Provides a shared handle to the activation scheduler.
Provided Methods§
Sourcefn activator_for(&self, path: Rc<[usize]>) -> Activator
fn activator_for(&self, path: Rc<[usize]>) -> Activator
Constructs an Activator
tied to the specified operator address.
Sourcefn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator
Constructs a SyncActivator
tied to the specified operator address.