pub struct PointEstimate { /* private fields */ }Expand description
One readback point’s residual estimate (a ring of the last samples).
Implementations§
Source§impl PointEstimate
impl PointEstimate
Sourcepub fn predicted_ns(&self) -> Option<u64>
pub fn predicted_ns(&self) -> Option<u64>
The predicted residual (min of the kept samples), None before the first.
Sourcepub fn sleep_ns(&self, plan: &DeadlinePlan) -> Option<u64>
pub fn sleep_ns(&self, plan: &DeadlinePlan) -> Option<u64>
How long to sleep from the wait’s start; None = do not sleep.
Sourcepub fn observe(&mut self, plan: &DeadlinePlan, outcome: Outcome)
pub fn observe(&mut self, plan: &DeadlinePlan, outcome: Outcome)
Record one wait’s outcome.
Trait Implementations§
Source§impl Clone for PointEstimate
impl Clone for PointEstimate
impl Copy for PointEstimate
Source§impl Debug for PointEstimate
impl Debug for PointEstimate
Source§impl Default for PointEstimate
impl Default for PointEstimate
impl Eq for PointEstimate
Source§impl PartialEq for PointEstimate
impl PartialEq for PointEstimate
impl StructuralPartialEq for PointEstimate
Auto Trait Implementations§
impl Forget for PointEstimate
impl Freeze for PointEstimate
impl Move for PointEstimate
impl RefUnwindSafe for PointEstimate
impl Send for PointEstimate
impl Sync for PointEstimate
impl Unpin for PointEstimate
impl UnsafeUnpin for PointEstimate
impl UnwindSafe for PointEstimate
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