pub struct PermanentHttpError {
pub status: u16,
pub url: String,
}Expand description
A definitive HTTP client-error response (4xx, e.g. 404). The server
answered; retrying won’t change the result. Downloads fail fast on these,
and callers can back off much longer than for transient failures.
Retrieve via err.downcast_ref::<PermanentHttpError>().
Fields§
§status: u16§url: StringTrait Implementations§
Source§impl Debug for PermanentHttpError
impl Debug for PermanentHttpError
Source§impl Display for PermanentHttpError
impl Display for PermanentHttpError
Source§impl Error for PermanentHttpError
impl Error for PermanentHttpError
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()
Auto Trait Implementations§
impl Freeze for PermanentHttpError
impl RefUnwindSafe for PermanentHttpError
impl Send for PermanentHttpError
impl Sync for PermanentHttpError
impl Unpin for PermanentHttpError
impl UnsafeUnpin for PermanentHttpError
impl UnwindSafe for PermanentHttpError
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