pub struct SetCPUThrottlingRateParams {
pub rate: f64,
}Expand description
Enables CPU throttling to emulate slow CPUs.
Fields§
§rate: f64Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
Trait Implementations§
Source§impl Clone for SetCPUThrottlingRateParams
impl Clone for SetCPUThrottlingRateParams
Source§fn clone(&self) -> SetCPUThrottlingRateParams
fn clone(&self) -> SetCPUThrottlingRateParams
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 moreSource§impl Debug for SetCPUThrottlingRateParams
impl Debug for SetCPUThrottlingRateParams
Source§impl Default for SetCPUThrottlingRateParams
impl Default for SetCPUThrottlingRateParams
Source§fn default() -> SetCPUThrottlingRateParams
fn default() -> SetCPUThrottlingRateParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetCPUThrottlingRateParams
impl<'de> Deserialize<'de> for SetCPUThrottlingRateParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SetCPUThrottlingRateParams
impl RefUnwindSafe for SetCPUThrottlingRateParams
impl Send for SetCPUThrottlingRateParams
impl Sync for SetCPUThrottlingRateParams
impl Unpin for SetCPUThrottlingRateParams
impl UnsafeUnpin for SetCPUThrottlingRateParams
impl UnwindSafe for SetCPUThrottlingRateParams
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