pub struct PreemptionConfigBuilder { /* private fields */ }
Expand description
Builder for PreemptionConfig
.
Implementations§
Source§impl PreemptionConfigBuilder
impl PreemptionConfigBuilder
pub fn system_scheduler_enabled(&mut self, value: bool) -> &mut Self
pub fn sys_batch_scheduler_enabled(&mut self, value: bool) -> &mut Self
pub fn batch_scheduler_enabled(&mut self, value: bool) -> &mut Self
pub fn service_scheduler_enabled(&mut self, value: bool) -> &mut Self
Sourcepub fn build(&self) -> Result<PreemptionConfig, PreemptionConfigBuilderError>
pub fn build(&self) -> Result<PreemptionConfig, PreemptionConfigBuilderError>
Trait Implementations§
Source§impl Clone for PreemptionConfigBuilder
impl Clone for PreemptionConfigBuilder
Source§fn clone(&self) -> PreemptionConfigBuilder
fn clone(&self) -> PreemptionConfigBuilder
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 PreemptionConfigBuilder
impl RefUnwindSafe for PreemptionConfigBuilder
impl Send for PreemptionConfigBuilder
impl Sync for PreemptionConfigBuilder
impl Unpin for PreemptionConfigBuilder
impl UnwindSafe for PreemptionConfigBuilder
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