Struct aws_sdk_athena::types::SessionStatus
source · #[non_exhaustive]pub struct SessionStatus {
pub start_date_time: Option<DateTime>,
pub last_modified_date_time: Option<DateTime>,
pub end_date_time: Option<DateTime>,
pub idle_since_date_time: Option<DateTime>,
pub state: Option<SessionState>,
pub state_change_reason: Option<String>,
}Expand description
Contains information about the status of a session.
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.start_date_time: Option<DateTime>The date and time that the session started.
last_modified_date_time: Option<DateTime>The most recent date and time that the session was modified.
end_date_time: Option<DateTime>The date and time that the session ended.
idle_since_date_time: Option<DateTime>The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
state: Option<SessionState>The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
state_change_reason: Option<String>The reason for the session state change (for example, canceled because the session was terminated).
Implementations§
source§impl SessionStatus
impl SessionStatus
sourcepub fn start_date_time(&self) -> Option<&DateTime>
pub fn start_date_time(&self) -> Option<&DateTime>
The date and time that the session started.
sourcepub fn last_modified_date_time(&self) -> Option<&DateTime>
pub fn last_modified_date_time(&self) -> Option<&DateTime>
The most recent date and time that the session was modified.
sourcepub fn end_date_time(&self) -> Option<&DateTime>
pub fn end_date_time(&self) -> Option<&DateTime>
The date and time that the session ended.
sourcepub fn idle_since_date_time(&self) -> Option<&DateTime>
pub fn idle_since_date_time(&self) -> Option<&DateTime>
The date and time starting at which the session became idle. Can be empty if the session is not currently idle.
sourcepub fn state(&self) -> Option<&SessionState>
pub fn state(&self) -> Option<&SessionState>
The state of the session. A description of each state follows.
CREATING - The session is being started, including acquiring resources.
CREATED - The session has been started.
IDLE - The session is able to accept a calculation.
BUSY - The session is processing another task and is unable to accept a calculation.
TERMINATING - The session is in the process of shutting down.
TERMINATED - The session and its resources are no longer running.
DEGRADED - The session has no healthy coordinators.
FAILED - Due to a failure, the session and its resources are no longer running.
sourcepub fn state_change_reason(&self) -> Option<&str>
pub fn state_change_reason(&self) -> Option<&str>
The reason for the session state change (for example, canceled because the session was terminated).
source§impl SessionStatus
impl SessionStatus
sourcepub fn builder() -> SessionStatusBuilder
pub fn builder() -> SessionStatusBuilder
Creates a new builder-style object to manufacture SessionStatus.
Trait Implementations§
source§impl Clone for SessionStatus
impl Clone for SessionStatus
source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SessionStatus
impl Debug for SessionStatus
source§impl PartialEq for SessionStatus
impl PartialEq for SessionStatus
source§fn eq(&self, other: &SessionStatus) -> bool
fn eq(&self, other: &SessionStatus) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SessionStatus
Auto Trait Implementations§
impl Freeze for SessionStatus
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnwindSafe for SessionStatus
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