Enum aws_smithy_http_tower::SendOperationError [−][src]
pub enum SendOperationError {
RequestConstructionError(BoxError),
RequestDispatchError(ConnectorError),
}
Expand description
An Error Occurred During the process of sending an Operation
The variants are split to enable the final SdkError to differentiate between two types of errors:
RequestConstructionError
: Errors where the SDK never attempted to dispatch the underlyinghttp::Request
. These represent errors that occurred during the request construction pipeline. These generally stem from configuration issues.RequestDispatchError
: Errors where the inner tower service failed (eg. because the hostname couldn’t be resolved, connection errors, socket hangup etc.). In this case, we don’t know how much of the request was actually sent to the client. We only know that we never got back anhttp::Response
(and instead got an error).
SendOperationError
is currently defined only in aws-smithy-http-tower
because it may be removed
or replaced with SdkError
in the future.
SendOperationError
MAY be moved to a private module in the future.
Variants
RequestConstructionError(BoxError)
The request could not be constructed
These errors usually stem from configuration issues (eg. no region, bad credential provider, etc.)
Tuple Fields of RequestConstructionError
0: BoxError
RequestDispatchError(ConnectorError)
The request could not be dispatched
Tuple Fields of RequestDispatchError
Trait Implementations
Convert a SendOperationError
into an SdkError
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SendOperationError
impl Send for SendOperationError
impl Sync for SendOperationError
impl Unpin for SendOperationError
impl !UnwindSafe for SendOperationError
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