#[non_exhaustive]pub enum ContainerInfo {
EksInfo(EksInfo),
Unknown,
}Expand description
The information about the container used for a job run or a managed endpoint.
Variants (Non-exhaustive)§
This enum is marked as 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.
EksInfo(EksInfo)
The information about the Amazon EKS cluster.
Unknown
The Unknown variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl ContainerInfo
impl ContainerInfo
sourcepub fn as_eks_info(&self) -> Result<&EksInfo, &Self>
pub fn as_eks_info(&self) -> Result<&EksInfo, &Self>
sourcepub fn is_eks_info(&self) -> bool
pub fn is_eks_info(&self) -> bool
Returns true if this is a EksInfo.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown variant.
Trait Implementations§
source§impl Clone for ContainerInfo
impl Clone for ContainerInfo
source§fn clone(&self) -> ContainerInfo
fn clone(&self) -> ContainerInfo
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 moresource§impl Debug for ContainerInfo
impl Debug for ContainerInfo
source§impl PartialEq<ContainerInfo> for ContainerInfo
impl PartialEq<ContainerInfo> for ContainerInfo
source§fn eq(&self, other: &ContainerInfo) -> bool
fn eq(&self, other: &ContainerInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ContainerInfo
Auto Trait Implementations§
impl RefUnwindSafe for ContainerInfo
impl Send for ContainerInfo
impl Sync for ContainerInfo
impl Unpin for ContainerInfo
impl UnwindSafe for ContainerInfo
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