#[non_exhaustive]pub enum IpClass {
Public,
Loopback,
Private,
LinkLocal,
Documentation,
Multicast,
Reserved,
}Expand description
Classification of an IP address for SSRF policy.
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.
Public
A globally routable unicast address.
Loopback
Loopback.
Private
Private, unique-local, or shared address space.
LinkLocal
Link-local, including cloud metadata addresses in 169.254.0.0/16.
Documentation
Documentation, benchmarking, or discard ranges.
Multicast
Multicast or broadcast.
Reserved
Unspecified or otherwise reserved.
Implementations§
Trait Implementations§
impl Copy for IpClass
impl Eq for IpClass
impl StructuralPartialEq for IpClass
Auto Trait Implementations§
impl Forget for IpClass
impl Freeze for IpClass
impl RefUnwindSafe for IpClass
impl Send for IpClass
impl Sync for IpClass
impl Unpin for IpClass
impl UnsafeUnpin for IpClass
impl UnwindSafe for IpClass
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