pub enum RecoverableError {
Timeout,
ServerError {
code: u16,
},
RangeNotSatisfiable {
range: String,
},
TemporaryNetworkFailure {
message: String,
},
MaxTriesReached {
attempts: u32,
},
InvalidPieceIndex {
index: u32,
max_index: u32,
},
}Variants§
Trait Implementations§
Source§impl Clone for RecoverableError
impl Clone for RecoverableError
Source§fn clone(&self) -> RecoverableError
fn clone(&self) -> RecoverableError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecoverableError
impl Debug for RecoverableError
Source§impl Display for RecoverableError
impl Display for RecoverableError
Source§impl Error for RecoverableError
impl Error for RecoverableError
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<RecoverableError> for Aria2Error
impl From<RecoverableError> for Aria2Error
Source§fn from(source: RecoverableError) -> Self
fn from(source: RecoverableError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecoverableError
impl PartialEq for RecoverableError
impl StructuralPartialEq for RecoverableError
Auto Trait Implementations§
impl Freeze for RecoverableError
impl RefUnwindSafe for RecoverableError
impl Send for RecoverableError
impl Sync for RecoverableError
impl Unpin for RecoverableError
impl UnsafeUnpin for RecoverableError
impl UnwindSafe for RecoverableError
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