Struct spin_sleep::LoopHelperBuilder [] [src]

pub struct LoopHelperBuilder { /* fields omitted */ }

Builds LoopHelper.

Methods

impl LoopHelperBuilder
[src]

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.

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

impl Debug for LoopHelperBuilder
[src]

Formats the value using the given formatter.

impl Clone for LoopHelperBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for LoopHelperBuilder
[src]

impl PartialEq for LoopHelperBuilder
[src]

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

This method tests for !=.

impl Eq for LoopHelperBuilder
[src]