Struct rusoto_gamelift::EC2InstanceCounts
source · [−]pub struct EC2InstanceCounts {
pub active: Option<i64>,
pub desired: Option<i64>,
pub idle: Option<i64>,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub pending: Option<i64>,
pub terminating: Option<i64>,
}
Expand description
Resource capacity settings. Fleet capacity is measured in EC2 instances. Pending and terminating counts are non-zero when the fleet capacity is adjusting to a scaling event or if access to resources is temporarily affected.
EC2 instance counts are part of FleetCapacity.
Fields
active: Option<i64>
Actual number of instances that are ready to host game sessions.
desired: Option<i64>
Ideal number of active instances. GameLift will always try to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances.
idle: Option<i64>
Number of active instances that are not currently hosting a game session.
maximum: Option<i64>
The maximum instance count value allowed.
minimum: Option<i64>
The minimum instance count value allowed.
pending: Option<i64>
Number of instances that are starting but not yet active.
terminating: Option<i64>
Number of instances that are no longer active but haven't yet been terminated.
Trait Implementations
sourceimpl Clone for EC2InstanceCounts
impl Clone for EC2InstanceCounts
sourcefn clone(&self) -> EC2InstanceCounts
fn clone(&self) -> EC2InstanceCounts
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EC2InstanceCounts
impl Debug for EC2InstanceCounts
sourceimpl Default for EC2InstanceCounts
impl Default for EC2InstanceCounts
sourcefn default() -> EC2InstanceCounts
fn default() -> EC2InstanceCounts
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EC2InstanceCounts
impl<'de> Deserialize<'de> for EC2InstanceCounts
sourcefn 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
sourceimpl PartialEq<EC2InstanceCounts> for EC2InstanceCounts
impl PartialEq<EC2InstanceCounts> for EC2InstanceCounts
sourcefn eq(&self, other: &EC2InstanceCounts) -> bool
fn eq(&self, other: &EC2InstanceCounts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EC2InstanceCounts) -> bool
fn ne(&self, other: &EC2InstanceCounts) -> bool
This method tests for !=
.
impl StructuralPartialEq for EC2InstanceCounts
Auto Trait Implementations
impl RefUnwindSafe for EC2InstanceCounts
impl Send for EC2InstanceCounts
impl Sync for EC2InstanceCounts
impl Unpin for EC2InstanceCounts
impl UnwindSafe for EC2InstanceCounts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more