pub struct TimesliceConfig {
pub max_run_time_before_yield: Duration,
pub max_run_time_before_throttle: Duration,
pub throttle_duration: Duration,
}Expand description
Time limits used to yield or throttle execution.
Fields§
§max_run_time_before_yield: DurationMaximum runtime before yielding to the async scheduler.
max_run_time_before_throttle: DurationMaximum runtime before a throttle sleep is forced.
throttle_duration: DurationDuration of the throttle sleep once triggered.
Trait Implementations§
Source§impl Clone for TimesliceConfig
impl Clone for TimesliceConfig
Source§fn clone(&self) -> TimesliceConfig
fn clone(&self) -> TimesliceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TimesliceConfig
impl RefUnwindSafe for TimesliceConfig
impl Send for TimesliceConfig
impl Sync for TimesliceConfig
impl Unpin for TimesliceConfig
impl UnwindSafe for TimesliceConfig
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