Struct aws_sdk_ssm::error::StartSessionError [−][src]
#[non_exhaustive]pub struct StartSessionError {
pub kind: StartSessionErrorKind,
// some fields omitted
}
Expand description
Error type for the StartSession
operation.
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.kind: StartSessionErrorKind
Kind of error that occurred.
Implementations
Creates a new StartSessionError
.
Creates the StartSessionError::Unhandled
variant from any error type.
Creates the StartSessionError::Unhandled
variant from a aws_smithy_types::Error
.
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Returns the request ID if it’s available.
Returns true
if the error kind is StartSessionErrorKind::InternalServerError
.
Returns true
if the error kind is StartSessionErrorKind::InvalidDocument
.
Returns true
if the error kind is StartSessionErrorKind::TargetNotConnected
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StartSessionError
impl Send for StartSessionError
impl Sync for StartSessionError
impl Unpin for StartSessionError
impl !UnwindSafe for StartSessionError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more