Struct aws_sdk_emr::types::ClusterStatus
source · #[non_exhaustive]pub struct ClusterStatus {
pub state: Option<ClusterState>,
pub state_change_reason: Option<ClusterStateChangeReason>,
pub timeline: Option<ClusterTimeline>,
pub error_details: Option<Vec<ErrorDetail>>,
}
Expand description
The detailed status of the cluster.
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.state: Option<ClusterState>
The current state of the cluster.
state_change_reason: Option<ClusterStateChangeReason>
The reason for the cluster status change.
timeline: Option<ClusterTimeline>
A timeline that represents the status of a cluster over the lifetime of the cluster.
error_details: Option<Vec<ErrorDetail>>
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail
tuples.
Implementations§
source§impl ClusterStatus
impl ClusterStatus
sourcepub fn state(&self) -> Option<&ClusterState>
pub fn state(&self) -> Option<&ClusterState>
The current state of the cluster.
sourcepub fn state_change_reason(&self) -> Option<&ClusterStateChangeReason>
pub fn state_change_reason(&self) -> Option<&ClusterStateChangeReason>
The reason for the cluster status change.
sourcepub fn timeline(&self) -> Option<&ClusterTimeline>
pub fn timeline(&self) -> Option<&ClusterTimeline>
A timeline that represents the status of a cluster over the lifetime of the cluster.
sourcepub fn error_details(&self) -> &[ErrorDetail]
pub fn error_details(&self) -> &[ErrorDetail]
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail
tuples.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .error_details.is_none()
.
source§impl ClusterStatus
impl ClusterStatus
sourcepub fn builder() -> ClusterStatusBuilder
pub fn builder() -> ClusterStatusBuilder
Creates a new builder-style object to manufacture ClusterStatus
.
Trait Implementations§
source§impl Clone for ClusterStatus
impl Clone for ClusterStatus
source§fn clone(&self) -> ClusterStatus
fn clone(&self) -> ClusterStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterStatus
impl Debug for ClusterStatus
source§impl PartialEq for ClusterStatus
impl PartialEq for ClusterStatus
source§fn eq(&self, other: &ClusterStatus) -> bool
fn eq(&self, other: &ClusterStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClusterStatus
Auto Trait Implementations§
impl Freeze for ClusterStatus
impl RefUnwindSafe for ClusterStatus
impl Send for ClusterStatus
impl Sync for ClusterStatus
impl Unpin for ClusterStatus
impl UnwindSafe for ClusterStatus
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