Trait timely::scheduling::Scheduler
source · 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.