Struct aws_smithy_http::result::ConnectorError [−][src]
pub struct ConnectorError { /* fields omitted */ }
Expand description
Error from the underlying Connector
Connector exists to attach a ConnectorErrorKind
to what would otherwise be an opaque Box<dyn Error>
that comes off a potentially generic or dynamic connector.
The attached kind
is used to determine what retry behavior should occur (if any) based on the
connector error.
Implementations
Construct a ConnectorError
from an error caused by a timeout
Timeout errors are typically retried on a new connection.
Construct a ConnectorError
from an error caused by the user (e.g. invalid HTTP request)
Construct a ConnectorError
from an IO related error (e.g. socket hangup)
Construct a ConnectorError
from an different unclassified error.
Optionally, an explicit Kind
may be passed.
Returns true if the error is an timeout error
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ConnectorError
impl Send for ConnectorError
impl Sync for ConnectorError
impl Unpin for ConnectorError
impl !UnwindSafe for ConnectorError
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