pub struct AbortError { /* private fields */ }Expand description
An abort error indicating the operation was cancelled.
This error type is used when a request is cancelled via an AbortSignal.
It corresponds to JavaScript’s AbortError.
§Examples
use fetchttp::AbortError;
let error = AbortError::new("The operation was aborted");
println!("Error: {}", error);Implementations§
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 Display for AbortError
impl Display for AbortError
Source§impl Error for AbortError
impl Error for AbortError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AbortError> for FetchError
impl From<AbortError> for FetchError
Source§fn from(err: AbortError) -> Self
fn from(err: AbortError) -> Self
Converts to this type from the input type.
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