pub struct BridgeConfig {
pub bridge_name: String,
pub subnet: String,
pub container_ip: Option<String>,
pub dns: Vec<String>,
pub port_forwards: Vec<PortForward>,
pub nat_backend: NatBackend,
}Expand description
Configuration for bridge networking
Fields§
§bridge_name: StringBridge interface name
subnet: StringSubnet (e.g., “10.0.42.0/24”)
container_ip: Option<String>Container IP address (auto-assigned from subnet)
dns: Vec<String>DNS servers
port_forwards: Vec<PortForward>Port forwarding rules
nat_backend: NatBackendNAT backend selection for the native runtime.
Implementations§
Source§impl BridgeConfig
impl BridgeConfig
Sourcepub fn with_public_dns(self) -> Self
pub fn with_public_dns(self) -> Self
Convenience: populate with public Google DNS resolvers. Suitable for agent/sandbox workloads, NOT for production services.
pub fn with_dns(self, servers: Vec<String>) -> Self
pub fn with_nat_backend(self, backend: NatBackend) -> Self
pub fn selected_nat_backend( &self, host_is_root: bool, rootless: bool, ) -> NatBackend
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§fn clone(&self) -> BridgeConfig
fn clone(&self) -> BridgeConfig
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 BridgeConfig
impl Debug for BridgeConfig
Auto Trait Implementations§
impl Freeze for BridgeConfig
impl RefUnwindSafe for BridgeConfig
impl Send for BridgeConfig
impl Sync for BridgeConfig
impl Unpin for BridgeConfig
impl UnsafeUnpin for BridgeConfig
impl UnwindSafe for BridgeConfig
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