pub struct TaskGroupBuilder { /* private fields */ }
Expand description
Builder for TaskGroup
.
Implementations§
Source§impl TaskGroupBuilder
impl TaskGroupBuilder
pub fn name(&mut self, value: Option<String>) -> &mut Self
pub fn count(&mut self, value: Option<i64>) -> &mut Self
pub fn constraints(&mut self, value: Vec<Constraint>) -> &mut Self
pub fn affinities(&mut self, value: Vec<Affinity>) -> &mut Self
pub fn tasks(&mut self, value: Vec<Task>) -> &mut Self
pub fn spreads(&mut self, value: Vec<Spread>) -> &mut Self
pub fn volumes(&mut self, value: HashMap<String, VolumeRequest>) -> &mut Self
pub fn restart_policy(&mut self, value: Option<RestartPolicy>) -> &mut Self
pub fn disconnect(&mut self, value: Option<DisconnectStrategy>) -> &mut Self
pub fn reschedule_policy( &mut self, value: Option<ReschedulePolicy>, ) -> &mut Self
pub fn ephemeral_disk(&mut self, value: Option<EphemeralDisk>) -> &mut Self
pub fn update(&mut self, value: Option<UpdateStrategy>) -> &mut Self
pub fn migrate(&mut self, value: Option<MigrateStrategy>) -> &mut Self
pub fn networks(&mut self, value: Vec<NetworkResource>) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn services(&mut self, value: Vec<Service>) -> &mut Self
pub fn shutdown_delay(&mut self, value: Option<TimeDelta>) -> &mut Self
Sourcepub fn stop_after_client_disconnect(
&mut self,
value: Option<TimeDelta>,
) -> &mut Self
pub fn stop_after_client_disconnect( &mut self, value: Option<TimeDelta>, ) -> &mut Self
Deprecated: StopAfterClientDisconnect is deprecated in Nomad 1.8 and ignored in Nomad 1.10. Use Disconnect.StopOnClientAfter.
Sourcepub fn max_client_disconnect(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn max_client_disconnect(&mut self, value: Option<TimeDelta>) -> &mut Self
Deprecated: MaxClientDisconnect is deprecated in Nomad 1.8.0 and ignored in Nomad 1.10. Use Disconnect.LostAfter.
pub fn scaling(&mut self, value: Option<ScalingPolicy>) -> &mut Self
pub fn consul(&mut self, value: Option<Consul>) -> &mut Self
Sourcepub fn prevent_reschedule_on_lost(&mut self, value: Option<bool>) -> &mut Self
pub fn prevent_reschedule_on_lost(&mut self, value: Option<bool>) -> &mut Self
Deprecated: PreventRescheduleOnLost is deprecated in Nomad 1.8.0 and ignored in Nomad 1.10. Use Disconnect.Replace.
Trait Implementations§
Source§impl Clone for TaskGroupBuilder
impl Clone for TaskGroupBuilder
Source§fn clone(&self) -> TaskGroupBuilder
fn clone(&self) -> TaskGroupBuilder
Returns a copy 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 TaskGroupBuilder
impl RefUnwindSafe for TaskGroupBuilder
impl Send for TaskGroupBuilder
impl Sync for TaskGroupBuilder
impl Unpin for TaskGroupBuilder
impl UnwindSafe for TaskGroupBuilder
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