pub enum NetworkProfile {
Public,
Private,
Host,
}Expand description
A composable high-level network access profile.
Profiles expand into ordinary first-match-wins policy rules. Every non-empty profile set includes exactly one narrow DNS rule for the sandbox gateway; the requested destination groups then follow in canonical order.
Variants§
Public
Public internet addresses.
Private
Private/LAN address ranges (RFC 1918, RFC 4193 ULA, and CGN).
Host
The sandbox host via its gateway addresses.
Trait Implementations§
Source§impl Clone for NetworkProfile
impl Clone for NetworkProfile
Source§fn clone(&self) -> NetworkProfile
fn clone(&self) -> NetworkProfile
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 NetworkProfile
Source§impl Debug for NetworkProfile
impl Debug for NetworkProfile
Source§impl<'de> Deserialize<'de> for NetworkProfile
impl<'de> Deserialize<'de> for NetworkProfile
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 NetworkProfile
Source§impl Hash for NetworkProfile
impl Hash for NetworkProfile
Source§impl PartialEq for NetworkProfile
impl PartialEq for NetworkProfile
Source§impl Serialize for NetworkProfile
impl Serialize for NetworkProfile
impl StructuralPartialEq for NetworkProfile
Auto Trait Implementations§
impl Freeze for NetworkProfile
impl RefUnwindSafe for NetworkProfile
impl Send for NetworkProfile
impl Sync for NetworkProfile
impl Unpin for NetworkProfile
impl UnsafeUnpin for NetworkProfile
impl UnwindSafe for NetworkProfile
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.