#[non_exhaustive]pub struct SchedulingConfig {
pub preemptible: bool,
pub reserved: bool,
pub spot: bool,
/* private fields */
}Expand description
Sets the scheduling options for this node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.preemptible: boolDefines whether the node is preemptible.
reserved: boolWhether the node is created under a reservation.
spot: boolOptional. Defines whether the node is Spot VM.
Implementations§
Source§impl SchedulingConfig
impl SchedulingConfig
pub fn new() -> Self
Sourcepub fn set_preemptible<T: Into<bool>>(self, v: T) -> Self
pub fn set_preemptible<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_reserved<T: Into<bool>>(self, v: T) -> Self
pub fn set_reserved<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SchedulingConfig
impl Clone for SchedulingConfig
Source§fn clone(&self) -> SchedulingConfig
fn clone(&self) -> SchedulingConfig
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 SchedulingConfig
impl Debug for SchedulingConfig
Source§impl Default for SchedulingConfig
impl Default for SchedulingConfig
Source§fn default() -> SchedulingConfig
fn default() -> SchedulingConfig
Returns the “default value” for a type. Read more
Source§impl Message for SchedulingConfig
impl Message for SchedulingConfig
Source§impl PartialEq for SchedulingConfig
impl PartialEq for SchedulingConfig
impl StructuralPartialEq for SchedulingConfig
Auto Trait Implementations§
impl Freeze for SchedulingConfig
impl RefUnwindSafe for SchedulingConfig
impl Send for SchedulingConfig
impl Sync for SchedulingConfig
impl Unpin for SchedulingConfig
impl UnsafeUnpin for SchedulingConfig
impl UnwindSafe for SchedulingConfig
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