Skip to main content

Tracker

Struct Tracker 

Source
pub struct Tracker { /* private fields */ }
Expand description

Turns successive snapshots into windows of work, remembering which processes it has seen so a reparented worker keeps counting.

Implementations§

Source§

impl Tracker

Source

pub fn seen(&self) -> Vec<Id>

The processes of the last complete snapshot: the next walk re-reads them even if they are no longer under the root.

Source

pub fn observe(&mut self, now: Instant, snap: Snapshot) -> Observation

Trait Implementations§

Source§

impl Default for Tracker

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Forget for Tracker

§

impl Freeze for Tracker
where *const u8 is !null: Freeze, PhantomData<(Id, Proc)>: Freeze,

§

impl Move for Tracker

§

impl RefUnwindSafe for Tracker

§

impl Send for Tracker
where RawTable<(Id, Proc)>: Send,

§

impl Sync for Tracker
where RawTable<(Id, Proc)>: Sync,

§

impl Unpin for Tracker
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Tracker

§

impl UnwindSafe for Tracker

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.