pub struct DrainSpecBuilder { /* private fields */ }
Expand description
Builder for DrainSpec
.
Implementations§
Source§impl DrainSpecBuilder
impl DrainSpecBuilder
Sourcepub fn deadline(&mut self, value: TimeDelta) -> &mut Self
pub fn deadline(&mut self, value: TimeDelta) -> &mut Self
Deadline is the duration after StartTime when the remaining allocations on a draining Node should be told to stop.
Sourcepub fn ignore_system_jobs(&mut self, value: bool) -> &mut Self
pub fn ignore_system_jobs(&mut self, value: bool) -> &mut Self
IgnoreSystemJobs allows systems jobs to remain on the node even though it has been marked for draining.
Trait Implementations§
Source§impl Clone for DrainSpecBuilder
impl Clone for DrainSpecBuilder
Source§fn clone(&self) -> DrainSpecBuilder
fn clone(&self) -> DrainSpecBuilder
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 DrainSpecBuilder
impl RefUnwindSafe for DrainSpecBuilder
impl Send for DrainSpecBuilder
impl Sync for DrainSpecBuilder
impl Unpin for DrainSpecBuilder
impl UnwindSafe for DrainSpecBuilder
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