pub struct DrainSpec {
pub deadline: TimeDelta,
pub ignore_system_jobs: bool,
}
Expand description
DrainSpec describes a Node’s drain behavior.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§deadline: TimeDelta
Deadline is the duration after StartTime when the remaining allocations on a draining Node should be told to stop.
ignore_system_jobs: bool
IgnoreSystemJobs allows systems jobs to remain on the node even though it has been marked for draining.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DrainSpec
impl<'de> Deserialize<'de> for DrainSpec
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
impl StructuralPartialEq for DrainSpec
Auto Trait Implementations§
impl Freeze for DrainSpec
impl RefUnwindSafe for DrainSpec
impl Send for DrainSpec
impl Sync for DrainSpec
impl Unpin for DrainSpec
impl UnwindSafe for DrainSpec
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