Enum tsunami::providers::aws::LaunchMode[][src]

#[non_exhaustive]pub enum LaunchMode {
    DefinedDuration {
        hours: usize,
    },
    TrySpot {
        hours: usize,
    },
    OnDemand,
}

Dictate how a set of instances should be launched.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DefinedDuration

Use AWS defined duration spot instances. Fails with an error if there is no spot capacity.

Fields of DefinedDuration

hours: usize

The lifetime of the defined duration instances. This value must be between 1 and 6 hours.

TrySpot

Try to use AWS defined duration spot instances. If that fails, e.g. due to lack of capacity, use OnDemand instead.

Fields of TrySpot

hours: usize

The lifetime of the defined duration instances. This value must be between 1 and 6 hours.

OnDemand

Use regular AWS on-demand instances.

Implementations

impl LaunchMode[src]

pub fn duration_spot(hours: usize) -> Self[src]

Launch using AWS defined duration spot instances.

The lifetime of such instances must be declared in advance (1-6 hours). This method thus clamps hours to be between 1 and 6.

pub fn try_duration_spot(hours: usize) -> Self[src]

Try to launch using AWS defined duration spot instances, and fall back to OnDemand instances otherwise.

The lifetime of such instances must be declared in advance (1-6 hours). This method thus clamps hours to be between 1 and 6.

pub fn on_demand() -> Self[src]

Launch using regular AWS on-demand instances.

Trait Implementations

impl Clone for LaunchMode[src]

impl Debug for LaunchMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]