Struct aws_sdk_gamelift::types::ContainerMemoryLimits
source · #[non_exhaustive]pub struct ContainerMemoryLimits {
pub soft_limit: Option<i32>,
pub hard_limit: Option<i32>,
}
Expand description
Specifies how much memory is available to a container. You can't change this value after you create this object.
Part of: ContainerDefinition$MemoryLimits
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.soft_limit: Option<i32>
The amount of memory that is reserved for a container. When the container group's shared memory is under contention, the system attempts to maintain the container memory usage at this soft limit. However, the container can use more memory when needed, if available. This property is similar to the Amazon ECS container definition parameter memoryreservation (Amazon Elastic Container Service Developer Guide).
hard_limit: Option<i32>
The maximum amount of memory that the container can use. If a container attempts to exceed this limit, the container is stopped. This property is similar to the Amazon ECS container definition parameter memory in the Amazon Elastic Container Service Developer Guide.
Implementations§
source§impl ContainerMemoryLimits
impl ContainerMemoryLimits
sourcepub fn soft_limit(&self) -> Option<i32>
pub fn soft_limit(&self) -> Option<i32>
The amount of memory that is reserved for a container. When the container group's shared memory is under contention, the system attempts to maintain the container memory usage at this soft limit. However, the container can use more memory when needed, if available. This property is similar to the Amazon ECS container definition parameter memoryreservation (Amazon Elastic Container Service Developer Guide).
sourcepub fn hard_limit(&self) -> Option<i32>
pub fn hard_limit(&self) -> Option<i32>
The maximum amount of memory that the container can use. If a container attempts to exceed this limit, the container is stopped. This property is similar to the Amazon ECS container definition parameter memory in the Amazon Elastic Container Service Developer Guide.
source§impl ContainerMemoryLimits
impl ContainerMemoryLimits
sourcepub fn builder() -> ContainerMemoryLimitsBuilder
pub fn builder() -> ContainerMemoryLimitsBuilder
Creates a new builder-style object to manufacture ContainerMemoryLimits
.
Trait Implementations§
source§impl Clone for ContainerMemoryLimits
impl Clone for ContainerMemoryLimits
source§fn clone(&self) -> ContainerMemoryLimits
fn clone(&self) -> ContainerMemoryLimits
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerMemoryLimits
impl Debug for ContainerMemoryLimits
source§impl PartialEq for ContainerMemoryLimits
impl PartialEq for ContainerMemoryLimits
source§fn eq(&self, other: &ContainerMemoryLimits) -> bool
fn eq(&self, other: &ContainerMemoryLimits) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerMemoryLimits
Auto Trait Implementations§
impl Freeze for ContainerMemoryLimits
impl RefUnwindSafe for ContainerMemoryLimits
impl Send for ContainerMemoryLimits
impl Sync for ContainerMemoryLimits
impl Unpin for ContainerMemoryLimits
impl UnwindSafe for ContainerMemoryLimits
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more