#[repr(u8)]pub enum NetworkScope {
None = 0,
Group = 1,
Public = 2,
Any = 3,
}Expand description
Network scope configuration for a sandbox.
Variants§
None = 0
Sandboxes cannot communicate with any other sandboxes
Group = 1
Sandboxes can only communicate within their subnet
Public = 2
Sandboxes can communicate with any other non-private address
Any = 3
Sandboxes can communicate with any address
Trait Implementations§
Source§impl Clone for NetworkScope
impl Clone for NetworkScope
Source§fn clone(&self) -> NetworkScope
fn clone(&self) -> NetworkScope
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkScope
impl Debug for NetworkScope
Source§impl Default for NetworkScope
impl Default for NetworkScope
Source§fn default() -> NetworkScope
fn default() -> NetworkScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkScope
impl<'de> Deserialize<'de> for NetworkScope
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
Source§impl Display for NetworkScope
impl Display for NetworkScope
Source§impl FromStr for NetworkScope
impl FromStr for NetworkScope
Source§impl PartialEq for NetworkScope
impl PartialEq for NetworkScope
Source§impl Serialize for NetworkScope
impl Serialize for NetworkScope
Source§impl TryFrom<&str> for NetworkScope
impl TryFrom<&str> for NetworkScope
Source§impl TryFrom<String> for NetworkScope
impl TryFrom<String> for NetworkScope
Source§impl TryFrom<u8> for NetworkScope
impl TryFrom<u8> for NetworkScope
impl Copy for NetworkScope
impl Eq for NetworkScope
impl StructuralPartialEq for NetworkScope
Auto Trait Implementations§
impl Freeze for NetworkScope
impl RefUnwindSafe for NetworkScope
impl Send for NetworkScope
impl Sync for NetworkScope
impl Unpin for NetworkScope
impl UnwindSafe for NetworkScope
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
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more