pub struct DispatchFailure { /* private fields */ }
Available on crate feature
client
only.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.