Struct igd_next::PortMappingEntry
source · pub struct PortMappingEntry {
pub remote_host: String,
pub external_port: u16,
pub protocol: PortMappingProtocol,
pub internal_port: u16,
pub internal_client: String,
pub enabled: bool,
pub port_mapping_description: String,
pub lease_duration: u32,
}Expand description
One port mapping entry as returned by GetGenericPortMappingEntry
Fields§
§remote_host: StringThe remote host for which the mapping is valid Can be an IP address or a host name
external_port: u16The external port of the mapping
protocol: PortMappingProtocolThe protocol of the mapping
internal_port: u16The internal (local) port
internal_client: StringThe internal client of the port mapping Can be an IP address or a host name
enabled: boolA flag whether this port mapping is enabled
port_mapping_description: StringA description for this port mapping
lease_duration: u32The lease duration of this port mapping in seconds