Struct aws_smithy_runtime_api::client::result::DispatchFailure
source · pub struct DispatchFailure { /* private fields */ }
Available on crate feature
client
only.Expand description
Error context for SdkError::DispatchFailure
Implementations§
source§impl DispatchFailure
impl DispatchFailure
sourcepub fn builder() -> DispatchFailureBuilder
pub fn builder() -> DispatchFailureBuilder
Creates a builder for this error context type.
sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Returns true if the error is an timeout error
sourcepub fn is_user(&self) -> bool
pub fn is_user(&self) -> bool
Returns true if the error is a user-caused error (e.g., invalid HTTP request)
sourcepub fn as_other(&self) -> Option<ErrorKind>
pub fn as_other(&self) -> Option<ErrorKind>
Returns the optional error kind associated with an unclassified error
sourcepub fn as_connector_error(&self) -> Option<&ConnectorError>
pub fn as_connector_error(&self) -> Option<&ConnectorError>
Returns the inner error if it is a connector error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DispatchFailure
impl !RefUnwindSafe for DispatchFailure
impl Send for DispatchFailure
impl Sync for DispatchFailure
impl Unpin for DispatchFailure
impl !UnwindSafe for DispatchFailure
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.