pub enum DestinationGroup {
Public,
Loopback,
Private,
LinkLocal,
Metadata,
Multicast,
Host,
}Expand description
Pre-defined destination groups.
Categories are disjoint with one exception: Metadata is a single IP
(169.254.169.254) that also falls inside the LinkLocal range.
Membership order in matches_group
gives Metadata precedence over LinkLocal for that IP. All other
categories are disjoint; Public is defined as the
complement of the other five.
Variants§
Public
Public internet — any address not in one of the other categories.
Loopback
Loopback addresses (127.0.0.0/8, ::1).
Private
Private IP ranges (RFC 1918 + RFC 4193 ULA + CGN).
LinkLocal
Link-local addresses (169.254.0.0/16, fe80::/10), excluding
the metadata IP which is categorized as Metadata.
Metadata
Cloud metadata endpoints (169.254.169.254).
Multicast
Multicast addresses (224.0.0.0/4, ff00::/8).
Host
The sandbox host itself, reachable via the gateway IP and
host.microsandbox.internal. Matches against the per-sandbox
gateway IPs stored on SharedState.
Trait Implementations§
Source§impl Clone for DestinationGroup
impl Clone for DestinationGroup
Source§fn clone(&self) -> DestinationGroup
fn clone(&self) -> DestinationGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
Source§impl PartialEq for DestinationGroup
impl PartialEq for DestinationGroup
Source§fn eq(&self, other: &DestinationGroup) -> bool
fn eq(&self, other: &DestinationGroup) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DestinationGroup
impl Serialize for DestinationGroup
impl Copy for DestinationGroup
impl Eq 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.