pub struct InvalidHTTPStatusCode { /* private fields */ }
Expand description
A possible error value when converting a HTTPStatus
from a u16
or &str
This error indicates that the supplied input was not a valid number, was less than 100, or was greater than 599.
Trait Implementations§
Source§impl Debug for InvalidHTTPStatusCode
impl Debug for InvalidHTTPStatusCode
Source§impl Display for InvalidHTTPStatusCode
impl Display for InvalidHTTPStatusCode
Source§impl Error for InvalidHTTPStatusCode
impl Error for InvalidHTTPStatusCode
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 InvalidHTTPStatusCode
impl RefUnwindSafe for InvalidHTTPStatusCode
impl Send for InvalidHTTPStatusCode
impl Sync for InvalidHTTPStatusCode
impl Unpin for InvalidHTTPStatusCode
impl UnwindSafe for InvalidHTTPStatusCode
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