pub enum Aria2Error {
Network(String),
Io(String),
Parse(String),
Checksum(String),
DownloadFailed(String),
Recoverable(RecoverableError),
Fatal(FatalError),
}Variants§
Network(String)
Io(String)
Parse(String)
Checksum(String)
DownloadFailed(String)
Recoverable(RecoverableError)
Fatal(FatalError)
Trait Implementations§
Source§impl Clone for Aria2Error
impl Clone for Aria2Error
Source§fn clone(&self) -> Aria2Error
fn clone(&self) -> Aria2Error
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 Aria2Error
impl Debug for Aria2Error
Source§impl Display for Aria2Error
impl Display for Aria2Error
Source§impl Error for Aria2Error
impl Error for Aria2Error
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<DecodeError> for Aria2Error
impl From<DecodeError> for Aria2Error
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Aria2Error
impl From<Error> for Aria2Error
Source§impl From<Error> for Aria2Error
impl From<Error> for Aria2Error
Source§impl From<FatalError> for Aria2Error
impl From<FatalError> for Aria2Error
Source§fn from(source: FatalError) -> Self
fn from(source: FatalError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Aria2Error
impl From<FromUtf8Error> for Aria2Error
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
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 Aria2Error
impl PartialEq for Aria2Error
impl StructuralPartialEq for Aria2Error
Auto Trait Implementations§
impl Freeze for Aria2Error
impl RefUnwindSafe for Aria2Error
impl Send for Aria2Error
impl Sync for Aria2Error
impl Unpin for Aria2Error
impl UnsafeUnpin for Aria2Error
impl UnwindSafe for Aria2Error
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