pub enum ResumableError {
Status {
url: String,
status: u16,
},
Protocol {
url: String,
detail: String,
},
Exhausted {
url: String,
attempts: u32,
last: String,
},
Http(Box<Error>),
Io(Error),
Cancelled,
}Expand description
Why a resumable transfer failed.
Variants§
Status
The server answered with a status the transfer cannot continue from.
Protocol
The server’s answer did not follow the protocol.
Exhausted
The connection kept dropping.
Fields
Http(Box<Error>)
The HTTP client failed (transport or authentication).
Io(Error)
Reading or writing the local file failed.
Cancelled
Cancel asked the download to stop. The partial file is kept, so
the next call resumes it.
Trait Implementations§
Source§impl Debug for ResumableError
impl Debug for ResumableError
Source§impl Display for ResumableError
impl Display for ResumableError
Source§impl Error for ResumableError
impl Error for ResumableError
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<Box<ResumableError>> for Error
impl From<Box<ResumableError>> for Error
Source§fn from(source: Box<ResumableError>) -> Self
fn from(source: Box<ResumableError>) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ResumableError
impl From<Error> for ResumableError
Source§impl From<Error> for ResumableError
impl From<Error> for ResumableError
Source§impl From<ResumableError> for CheckoutError
impl From<ResumableError> for CheckoutError
Source§fn from(e: ResumableError) -> Self
fn from(e: ResumableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ResumableError
impl !UnwindSafe for ResumableError
impl Freeze for ResumableError
impl Send for ResumableError
impl Sync for ResumableError
impl Unpin for ResumableError
impl UnsafeUnpin for ResumableError
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