Struct aws_sdk_gamelift::types::ContainerPortMapping
source · #[non_exhaustive]pub struct ContainerPortMapping {
pub container_port: Option<i32>,
pub connection_port: Option<i32>,
pub protocol: Option<IpProtocol>,
}
Expand description
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
Defines how an internal-facing container port is mapped to an external-facing connection port on a fleet instance of compute type CONTAINER
. Incoming traffic, such as a game client, uses a connection port to connect to a process in the container fleet. Amazon GameLift directs the inbound traffic to the container port that is assigned to the process, such as a game session, running on a container.
Part of: ContainerAttributes
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.container_port: Option<i32>
The port opened on the container.
connection_port: Option<i32>
The port opened on the fleet instance. This is also called the "host port".
protocol: Option<IpProtocol>
The network protocol that this mapping supports.
Implementations§
source§impl ContainerPortMapping
impl ContainerPortMapping
sourcepub fn container_port(&self) -> Option<i32>
pub fn container_port(&self) -> Option<i32>
The port opened on the container.
sourcepub fn connection_port(&self) -> Option<i32>
pub fn connection_port(&self) -> Option<i32>
The port opened on the fleet instance. This is also called the "host port".
sourcepub fn protocol(&self) -> Option<&IpProtocol>
pub fn protocol(&self) -> Option<&IpProtocol>
The network protocol that this mapping supports.
source§impl ContainerPortMapping
impl ContainerPortMapping
sourcepub fn builder() -> ContainerPortMappingBuilder
pub fn builder() -> ContainerPortMappingBuilder
Creates a new builder-style object to manufacture ContainerPortMapping
.
Trait Implementations§
source§impl Clone for ContainerPortMapping
impl Clone for ContainerPortMapping
source§fn clone(&self) -> ContainerPortMapping
fn clone(&self) -> ContainerPortMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerPortMapping
impl Debug for ContainerPortMapping
source§impl PartialEq for ContainerPortMapping
impl PartialEq for ContainerPortMapping
source§fn eq(&self, other: &ContainerPortMapping) -> bool
fn eq(&self, other: &ContainerPortMapping) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerPortMapping
Auto Trait Implementations§
impl Freeze for ContainerPortMapping
impl RefUnwindSafe for ContainerPortMapping
impl Send for ContainerPortMapping
impl Sync for ContainerPortMapping
impl Unpin for ContainerPortMapping
impl UnwindSafe for ContainerPortMapping
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