pub struct SetCPUThrottlingRateBuilder { /* private fields */ }Expand description
Builder for SetCPUThrottlingRate.
Implementations§
Source§impl SetCPUThrottlingRateBuilder
impl SetCPUThrottlingRateBuilder
Sourcepub fn rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
Sourcepub fn build(
&self,
) -> Result<SetCPUThrottlingRate, SetCPUThrottlingRateBuilderError>
pub fn build( &self, ) -> Result<SetCPUThrottlingRate, SetCPUThrottlingRateBuilderError>
Trait Implementations§
Source§impl Clone for SetCPUThrottlingRateBuilder
impl Clone for SetCPUThrottlingRateBuilder
Source§fn clone(&self) -> SetCPUThrottlingRateBuilder
fn clone(&self) -> SetCPUThrottlingRateBuilder
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 SetCPUThrottlingRateBuilder
impl RefUnwindSafe for SetCPUThrottlingRateBuilder
impl Send for SetCPUThrottlingRateBuilder
impl Sync for SetCPUThrottlingRateBuilder
impl Unpin for SetCPUThrottlingRateBuilder
impl UnsafeUnpin for SetCPUThrottlingRateBuilder
impl UnwindSafe for SetCPUThrottlingRateBuilder
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