pub struct DownloadDetails {
pub url: Url,
pub status_code: Option<StatusCode>,
pub cause: Option<BoxError>,
}Expand description
Payload of Error::Download.
Fields§
§url: UrlThe URL.
status_code: Option<StatusCode>HTTP status when the server answered.
cause: Option<BoxError>Underlying cause.
Trait Implementations§
Source§impl Debug for DownloadDetails
impl Debug for DownloadDetails
Source§impl Display for DownloadDetails
impl Display for DownloadDetails
Source§impl Error for DownloadDetails
impl Error for DownloadDetails
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()
Auto Trait Implementations§
impl !RefUnwindSafe for DownloadDetails
impl !UnwindSafe for DownloadDetails
impl Freeze for DownloadDetails
impl Send for DownloadDetails
impl Sync for DownloadDetails
impl Unpin for DownloadDetails
impl UnsafeUnpin for DownloadDetails
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