pub struct PointTable<K> { /* private fields */ }Expand description
The estimates of every readback point a host has waited at, keyed by K (the
host’s point identity, e.g. a call site). Runtime measurement, not a decision input.
Implementations§
Source§impl<K: Ord> PointTable<K>
impl<K: Ord> PointTable<K>
Sourcepub fn sleep_ns(&self, key: &K, plan: &DeadlinePlan) -> Option<u64>
pub fn sleep_ns(&self, key: &K, plan: &DeadlinePlan) -> Option<u64>
The sleep the next wait at key takes under plan (None: no sleep).
Sourcepub fn observe(&mut self, key: K, plan: &DeadlinePlan, outcome: Outcome)
pub fn observe(&mut self, key: K, plan: &DeadlinePlan, outcome: Outcome)
Record one wait’s outcome at key.
Trait Implementations§
Source§impl<K: Clone> Clone for PointTable<K>
impl<K: Clone> Clone for PointTable<K>
Source§impl<K: Debug> Debug for PointTable<K>
impl<K: Debug> Debug for PointTable<K>
Auto Trait Implementations§
impl<K> Forget for PointTable<K>
impl<K> Freeze for PointTable<K>
impl<K> Move for PointTable<K>
impl<K> RefUnwindSafe for PointTable<K>
impl<K> Send for PointTable<K>
impl<K> Sync for PointTable<K>
impl<K> Unpin for PointTable<K>
impl<K> UnsafeUnpin for PointTable<K>
impl<K> UnwindSafe for PointTable<K>
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