pub struct AddressDenial {
pub host: String,
pub addr: Option<IpAddr>,
pub class: Option<AddressClass>,
pub reason: String,
}Expand description
Why an address or host was refused. Converts to crate::HttpError::AddressDenied.
Fields§
§host: String§addr: Option<IpAddr>The offending address; None when the denial is about the name or scheme.
class: Option<AddressClass>§reason: StringTrait Implementations§
Source§impl Clone for AddressDenial
impl Clone for AddressDenial
Source§impl Debug for AddressDenial
impl Debug for AddressDenial
Source§impl Display for AddressDenial
impl Display for AddressDenial
impl Eq for AddressDenial
Source§impl Error for AddressDenial
impl Error for AddressDenial
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()
Source§impl From<AddressDenial> for HttpError
impl From<AddressDenial> for HttpError
Source§fn from(d: AddressDenial) -> Self
fn from(d: AddressDenial) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressDenial
impl PartialEq for AddressDenial
impl StructuralPartialEq for AddressDenial
Auto Trait Implementations§
impl Freeze for AddressDenial
impl RefUnwindSafe for AddressDenial
impl Send for AddressDenial
impl Sync for AddressDenial
impl Unpin for AddressDenial
impl UnsafeUnpin for AddressDenial
impl UnwindSafe for AddressDenial
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