#[non_exhaustive]pub enum Forbidden {
Loopback,
LinkLocal,
Metadata,
NotUnicast,
Private(&'static str),
}Expand description
The classes of address the proxy refuses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Loopback
This machine (127.0.0.0/8, ::1), including the proxy itself.
LinkLocal
Link-local (169.254.0.0/16, fe80::/10): where cloud metadata lives.
Metadata
A cloud metadata address outside the link-local ranges.
NotUnicast
Unspecified, broadcast, multicast or 0.0.0.0/8: never a server.
Private(&'static str)
Private, CGNAT, benchmarking or unique-local (fc00::/7): reachable
only when an allow rule names the address (named). Carries the
description naming the range.
Implementations§
Trait Implementations§
impl Copy for Forbidden
impl Eq for Forbidden
impl StructuralPartialEq for Forbidden
Auto Trait Implementations§
impl Freeze for Forbidden
impl RefUnwindSafe for Forbidden
impl Send for Forbidden
impl Sync for Forbidden
impl Unpin for Forbidden
impl UnsafeUnpin for Forbidden
impl UnwindSafe for Forbidden
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