Struct aws_smithy_runtime_api::client::result::DispatchFailure
source · pub struct DispatchFailure { /* private fields */ }
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
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>
Creates a shared type from an unshared type.