pub enum DestinationGroup {
Public,
Loopback,
Private,
LinkLocal,
Metadata,
Multicast,
Host,
}Expand description
Pre-defined destination category for a Destination::Group match.
Variants§
Public
Public internet — any address not in another category.
Loopback
Loopback addresses (127.0.0.0/8, ::1).
Private
Private ranges (RFC 1918 / RFC 4193 ULA / CGN).
LinkLocal
Link-local addresses, excluding the metadata IP.
Metadata
Cloud metadata endpoint (169.254.169.254).
Multicast
Multicast addresses (224.0.0.0/4, ff00::/8).
Host
The sandbox host, reachable via the gateway IP.
Trait Implementations§
Source§impl Clone for DestinationGroup
impl Clone for DestinationGroup
Source§fn clone(&self) -> DestinationGroup
fn clone(&self) -> DestinationGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DestinationGroup
Source§impl Debug for DestinationGroup
impl Debug for DestinationGroup
Source§impl<'de> Deserialize<'de> for DestinationGroup
impl<'de> Deserialize<'de> for DestinationGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DestinationGroup
Source§impl PartialEq for DestinationGroup
impl PartialEq for DestinationGroup
Source§fn eq(&self, other: &DestinationGroup) -> bool
fn eq(&self, other: &DestinationGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DestinationGroup
impl Serialize for DestinationGroup
impl StructuralPartialEq for DestinationGroup
Auto Trait Implementations§
impl Freeze for DestinationGroup
impl RefUnwindSafe for DestinationGroup
impl Send for DestinationGroup
impl Sync for DestinationGroup
impl Unpin for DestinationGroup
impl UnsafeUnpin for DestinationGroup
impl UnwindSafe for DestinationGroup
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