Struct aws_smithy_http::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 is_other(&self) -> Option<ErrorKind>
pub fn is_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 !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