pub enum BlockReason {
InvalidUrl(String),
Scheme(String),
NoHost,
Unresolved {
host: String,
},
Address {
host: String,
ip: IpAddr,
class: AddressClass,
},
MetadataHost {
host: String,
},
Callback(String),
}Expand description
Why the network policy refused a request.
Variants§
InvalidUrl(String)
Scheme(String)
The scheme is not in allowed_schemes.
NoHost
Unresolved
The host has no addresses (fail closed).
Address
The host is, or resolves to, a blocked address.
MetadataHost
A cloud metadata hostname.
Callback(String)
The per-request callback denied it.
Implementations§
Trait Implementations§
Source§impl Clone for BlockReason
impl Clone for BlockReason
Source§impl Debug for BlockReason
impl Debug for BlockReason
Source§impl Display for BlockReason
impl Display for BlockReason
impl Eq for BlockReason
Source§impl PartialEq for BlockReason
impl PartialEq for BlockReason
impl StructuralPartialEq for BlockReason
Auto Trait Implementations§
impl Freeze for BlockReason
impl RefUnwindSafe for BlockReason
impl Send for BlockReason
impl Sync for BlockReason
impl Unpin for BlockReason
impl UnsafeUnpin for BlockReason
impl UnwindSafe for BlockReason
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