Struct timely::scheduling::activate::Activations
source · pub struct Activations { /* private fields */ }
Expand description
Allocation-free activation tracker.
Implementations§
source§impl Activations
impl Activations
sourcepub fn activate_after(&mut self, path: &[usize], delay: Duration)
pub fn activate_after(&mut self, path: &[usize], delay: Duration)
Schedules a future activation for the task addressed by path
.
sourcepub fn map_active(&self, logic: impl Fn(&[usize]))
pub fn map_active(&self, logic: impl Fn(&[usize]))
Maps a function across activated paths.
sourcepub fn for_extensions(&self, path: &[usize], action: impl FnMut(usize))
pub fn for_extensions(&self, path: &[usize], action: impl FnMut(usize))
Sets as active any symbols that follow path
.
sourcepub fn sync(&self) -> SyncActivations
pub fn sync(&self) -> SyncActivations
Constructs a thread-safe SyncActivations
handle to this activator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Activations
impl RefUnwindSafe for Activations
impl Send for Activations
impl Sync for Activations
impl Unpin for Activations
impl UnwindSafe for Activations
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more