pub enum AbortError {
Show 14 variants
Failed,
Aborted,
TimedOut,
AccessDenied,
ConnectionClosed,
ConnectionReset,
ConnectionRefused,
ConnectionAborted,
ConnectionFailed,
NameNotResolved,
InternetDisconnected,
AddressUnreachable,
BlockedByClient,
BlockedByResponse,
}Expand description
Error code for aborting requests.
Variants§
Failed
Generic failure.
Aborted
Request was aborted.
TimedOut
Request timed out.
AccessDenied
Access was denied.
ConnectionClosed
Connection was closed.
ConnectionReset
Connection was reset.
ConnectionRefused
Connection was refused.
ConnectionAborted
Connection was aborted.
ConnectionFailed
Connection failed.
NameNotResolved
Name could not be resolved.
InternetDisconnected
Internet is disconnected.
AddressUnreachable
Address is unreachable.
BlockedByClient
Blocked by client.
BlockedByResponse
Blocked by response.
Trait Implementations§
Source§impl Clone for AbortError
impl Clone for AbortError
Source§fn clone(&self) -> AbortError
fn clone(&self) -> AbortError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbortError
impl Debug for AbortError
Source§impl Default for AbortError
impl Default for AbortError
Source§fn default() -> AbortError
fn default() -> AbortError
Returns the “default value” for a type. Read more
Source§impl Display for AbortError
impl Display for AbortError
Source§impl From<AbortError> for ErrorReason
impl From<AbortError> for ErrorReason
Source§fn from(error: AbortError) -> Self
fn from(error: AbortError) -> Self
Converts to this type from the input type.
Source§impl Hash for AbortError
impl Hash for AbortError
Source§impl PartialEq for AbortError
impl PartialEq for AbortError
impl Copy for AbortError
impl Eq for AbortError
impl StructuralPartialEq for AbortError
Auto Trait Implementations§
impl Freeze for AbortError
impl RefUnwindSafe for AbortError
impl Send for AbortError
impl Sync for AbortError
impl Unpin for AbortError
impl UnwindSafe for AbortError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.