pub struct CloudNetworkSpec {
pub enabled: bool,
pub policy: Option<NetworkPolicy>,
pub secrets: Option<SecretsConfig>,
pub max_connections: Option<usize>,
}Expand description
Cloud network specification. Mirrors the domain NetworkSpec but omits
the platform-controlled fields: interface overrides, host port mapping,
DNS, TLS interception, and host-CA trust are set by the cloud, not the
caller. deny_unknown_fields — posting an omitted field is an error, not a
silent drop.
Fields§
§enabled: boolWhether networking is enabled for this sandbox.
policy: Option<NetworkPolicy>Egress/ingress policy. The cloud floors it (hard-denies the internal network) before boot; public egress stays the caller’s to govern.
secrets: Option<SecretsConfig>Secret-injection config.
max_connections: Option<usize>Max concurrent guest connections (the cloud clamps it to a ceiling).
Trait Implementations§
Source§impl Clone for CloudNetworkSpec
impl Clone for CloudNetworkSpec
Source§fn clone(&self) -> CloudNetworkSpec
fn clone(&self) -> CloudNetworkSpec
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 moreSource§impl Debug for CloudNetworkSpec
impl Debug for CloudNetworkSpec
Source§impl Default for CloudNetworkSpec
impl Default for CloudNetworkSpec
Source§impl<'de> Deserialize<'de> for CloudNetworkSpecwhere
CloudNetworkSpec: Default,
impl<'de> Deserialize<'de> for CloudNetworkSpecwhere
CloudNetworkSpec: Default,
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
Auto Trait Implementations§
impl Freeze for CloudNetworkSpec
impl RefUnwindSafe for CloudNetworkSpec
impl Send for CloudNetworkSpec
impl Sync for CloudNetworkSpec
impl Unpin for CloudNetworkSpec
impl UnsafeUnpin for CloudNetworkSpec
impl UnwindSafe for CloudNetworkSpec
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