pub struct NetworkConfig {
pub enabled: bool,
pub interface: InterfaceOverrides,
pub ports: Vec<PublishedPort>,
pub policy: NetworkPolicy,
pub dns: DnsConfig,
pub tls: TlsConfig,
pub secrets: SecretsConfig,
pub max_connections: Option<usize>,
}Expand description
Complete network configuration for a sandbox.
Narrowed for the smoltcp in-process engine. Gateway, prefix length, and other host-backend details are engine internals derived from the sandbox slot — the user only specifies what matters: interface overrides, ports, policy, DNS, TLS, and connection limits.
Fields§
§enabled: boolWhether networking is enabled for this sandbox.
interface: InterfaceOverridesGuest interface overrides. Unset fields derived from sandbox slot.
ports: Vec<PublishedPort>Host → guest port mappings.
policy: NetworkPolicyEgress/ingress policy rules.
dns: DnsConfigDNS interception and filtering settings.
tls: TlsConfigTLS interception settings.
secrets: SecretsConfigSecret injection settings.
max_connections: Option<usize>Max concurrent guest connections. Default: 256.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
Returns a duplicate 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 NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfig
impl<'de> Deserialize<'de> for NetworkConfig
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 NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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