#[non_exhaustive]pub struct FailedToResolveHost;
Expand description
Rejection type used if the Host
extractor is unable to
resolve a host.
Implementations§
§impl FailedToResolveHost
impl FailedToResolveHost
pub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the status code used for this rejection.
Trait Implementations§
§impl Debug for FailedToResolveHost
impl Debug for FailedToResolveHost
§impl Default for FailedToResolveHost
impl Default for FailedToResolveHost
§fn default() -> FailedToResolveHost
fn default() -> FailedToResolveHost
Returns the “default value” for a type. Read more
§impl Display for FailedToResolveHost
impl Display for FailedToResolveHost
§impl Error for FailedToResolveHost
impl Error for FailedToResolveHost
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<FailedToResolveHost> for HostRejection
impl From<FailedToResolveHost> for HostRejection
§fn from(inner: FailedToResolveHost) -> HostRejection
fn from(inner: FailedToResolveHost) -> HostRejection
Converts to this type from the input type.
§impl IntoResponse for FailedToResolveHost
impl IntoResponse for FailedToResolveHost
§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl Freeze for FailedToResolveHost
impl RefUnwindSafe for FailedToResolveHost
impl Send for FailedToResolveHost
impl Sync for FailedToResolveHost
impl Unpin for FailedToResolveHost
impl UnwindSafe for FailedToResolveHost
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