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