pub struct DockerNatConfig {
pub topology: NatTopology,
pub public_subnet: Ipv4Network,
pub private_subnet_base: Ipv4Addr,
pub cleanup_on_drop: bool,
pub name_prefix: String,
}Expand description
Configuration for Docker NAT simulation
Fields§
§topology: NatTopologyNAT topology configuration
public_subnet: Ipv4NetworkBase subnet for public network (gateway network)
private_subnet_base: Ipv4AddrBase for private network subnets (each NAT gets one)
cleanup_on_drop: boolWhether to remove containers on drop
name_prefix: StringPrefix for container and network names
Trait Implementations§
Source§impl Clone for DockerNatConfig
impl Clone for DockerNatConfig
Source§fn clone(&self) -> DockerNatConfig
fn clone(&self) -> DockerNatConfig
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 DockerNatConfig
impl Debug for DockerNatConfig
Auto Trait Implementations§
impl Freeze for DockerNatConfig
impl RefUnwindSafe for DockerNatConfig
impl Send for DockerNatConfig
impl Sync for DockerNatConfig
impl Unpin for DockerNatConfig
impl UnwindSafe for DockerNatConfig
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