Struct timely::scheduling::activate::Activations [−][src]
Allocation-free activation tracker.
Implementations
impl Activations[src]
pub fn new(timer: Instant) -> Self[src]
Creates a new activation tracker.
pub fn activate(&mut self, path: &[usize])[src]
Activates the task addressed by path.
pub fn activate_after(&mut self, path: &[usize], delay: Duration)[src]
Schedules a future activation for the task addressed by path.
pub fn advance(&mut self)[src]
Discards the current active set and presents the next active set.
pub fn map_active(&self, logic: impl Fn(&[usize]))[src]
Maps a function across activated paths.
pub fn for_extensions(&self, path: &[usize], action: impl FnMut(usize))[src]
Sets as active any symbols that follow path.
pub fn sync(&self) -> SyncActivations[src]
Constructs a thread-safe SyncActivations handle to this activator.
pub fn empty_for(&self) -> Option<Duration>[src]
Time until next scheduled event.
This method should be used before putting a worker thread to sleep, as it indicates the amount of time before the thread should be unparked for the next scheduled activation.
Auto Trait Implementations
impl RefUnwindSafe for Activations
impl Send for Activations
impl Sync for Activations
impl Unpin for Activations
impl UnwindSafe for Activations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,