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: String
The remote host for which the mapping is valid Can be an IP address or a host name
external_port: u16
The external port of the mapping
protocol: PortMappingProtocol
The protocol of the mapping
internal_port: u16
The internal (local) port
internal_client: String
The internal client of the port mapping Can be an IP address or a host name
enabled: bool
A flag whether this port mapping is enabled
port_mapping_description: String
A description for this port mapping
lease_duration: u32
The 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