Struct spin_sleep::LoopHelperBuilder [−][src]
pub struct LoopHelperBuilder { /* fields omitted */ }
Expand description
Builds LoopHelper
.
Implementations
Sets the interval between
LoopHelper::report_rate
reports in seconds.
Sets the interval between
LoopHelper::report_rate
reports.
Sets the native sleep accuracy.
See SpinSleeper::new
for details.
Defaults to a platform specific opinionated value, that can change from release to release. Set this to ensure consistent behaviour across releases. However, consider that this value should be tuned & tested for a given platform.
Builds a LoopHelper
without targeting a rate.
This means all calls to
LoopHelper::loop_sleep
will simply return
immediately. Normally used when only interested in the LoopHelper rate reporting.
Builds a LoopHelper
targeting an input target_rate
.
Note: The target_rate
only affects
LoopHelper::loop_sleep
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LoopHelperBuilder
impl Send for LoopHelperBuilder
impl Sync for LoopHelperBuilder
impl Unpin for LoopHelperBuilder
impl UnwindSafe for LoopHelperBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more