Struct portforwarder_rs::port_forwarder::Forwarder
[−]
[src]
pub struct Forwarder { pub gateway: Gateway, pub network_interface: Ipv4Addr, pub open_ports: Vec<Port>, }
Fields
gateway: Gateway
network_interface: Ipv4Addr
open_ports: Vec<Port>
Methods
impl Forwarder
[src]
fn forward_any_port(
&mut self,
local_port: u16,
proto: PortMappingProtocol,
name: &str
) -> Result<u16, AddAnyPortError>
[src]
&mut self,
local_port: u16,
proto: PortMappingProtocol,
name: &str
) -> Result<u16, AddAnyPortError>
fn forward_port(
&mut self,
local_port: u16,
remote_port: u16,
proto: PortMappingProtocol,
name: &str
) -> Result<(), AddPortError>
[src]
&mut self,
local_port: u16,
remote_port: u16,
proto: PortMappingProtocol,
name: &str
) -> Result<(), AddPortError>
fn remove_port(
&mut self,
remote_port: u16,
proto: PortMappingProtocol
) -> Result<(), RemovePortError>
[src]
&mut self,
remote_port: u16,
proto: PortMappingProtocol
) -> Result<(), RemovePortError>