Struct spin_sleep::LoopHelperBuilder [] [src]

pub struct LoopHelperBuilder { /* fields omitted */ }

Builds LoopHelper.

Methods

impl LoopHelperBuilder
[src]

[src]

Sets the interval between LoopHelper::report_rate reports in seconds.

[src]

Sets the interval between LoopHelper::report_rate reports.

[src]

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.

[src]

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.

[src]

Builds a LoopHelper targeting an input target_rate. Note: The target_rate only affects LoopHelper::loop_sleep.

Trait Implementations

impl Debug for LoopHelperBuilder
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for LoopHelperBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for LoopHelperBuilder
[src]

impl PartialEq for LoopHelperBuilder
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for LoopHelperBuilder
[src]

Auto Trait Implementations