pub struct SpinPeriodResult {
pub work: SpinOnceResult,
pub overrun: bool,
pub elapsed: Duration,
}Expand description
Result from a single period with monotonic-clock measurement.
Contains the work performed, whether processing exceeded the period (overrun), and the actual measured processing time.
phase-359 W10 — was “(std only)”. The measurement is the executor’s own
clock now, so a no_std image gets the same result type its hosted sibling
does; elapsed is zero on a build with no clock at all.
Fields§
§work: SpinOnceResultWork performed during this period
overrun: boolWhether processing exceeded the target period
elapsed: DurationActual wall-clock processing time
Trait Implementations§
Source§impl Clone for SpinPeriodResult
impl Clone for SpinPeriodResult
Source§fn clone(&self) -> SpinPeriodResult
fn clone(&self) -> SpinPeriodResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpinPeriodResult
impl RefUnwindSafe for SpinPeriodResult
impl Send for SpinPeriodResult
impl Sync for SpinPeriodResult
impl Unpin for SpinPeriodResult
impl UnsafeUnpin for SpinPeriodResult
impl UnwindSafe for SpinPeriodResult
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