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
Auto Trait Implementations§
impl Freeze for PortMappingEntry
impl RefUnwindSafe for PortMappingEntry
impl Send for PortMappingEntry
impl Sync for PortMappingEntry
impl Unpin for PortMappingEntry
impl UnwindSafe for PortMappingEntry
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