pub enum Class {
Private,
Loopback,
Own,
Other,
}Expand description
IPv4 blocks: (address, prefix length, why).
What kind of address a refusal is about: hosts the user named may reach Class::Private
addresses, and Class::Loopback and Class::Own ones with --allow-loopback.
Variants§
Private
RFC 1918, carrier NAT, IPv6 unique-local.
Loopback
127.0.0.0/8, ::1.
Own
An address of this machine.
Other
Everything else in the tables: link-local (cloud metadata), multicast, documentation, …
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Forget for Class
impl Freeze for Class
impl Move for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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