Struct netsim::device::NatV4Builder [] [src]

pub struct NatV4Builder { /* fields omitted */ }

A builder for NatV4

Methods

impl NatV4Builder
[src]

[src]

Start building an Ipv4 NAT

[src]

Set the subnet used on the local side of the NAT. If left unset, a random subnet will be chosen.

[src]

Get the subnet set by the last call to subnet (if any).

[src]

Enable/disable hair-pinning.

[src]

Manually forward a UDP port.

[src]

Manually forward a TCP port.

[src]

Build the NAT

[src]

Build the NAT, spawning it directly onto the tokio event loop.

Trait Implementations

impl Default for NatV4Builder
[src]

[src]

Returns the "default value" for a type. Read more