pub struct NatPortMapping {
pub external_port: u16,
pub internal_port: u16,
pub protocol: u8,
pub container_ip: u32,
}Expand description
NAT port mapping entry.
Fields§
§external_port: u16External (host) port.
internal_port: u16Internal (container) port.
protocol: u8Protocol: 6=TCP, 17=UDP.
container_ip: u32Container IPv4 address.
Trait Implementations§
Source§impl Clone for NatPortMapping
impl Clone for NatPortMapping
Source§fn clone(&self) -> NatPortMapping
fn clone(&self) -> NatPortMapping
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NatPortMapping
impl Debug for NatPortMapping
Source§impl PartialEq for NatPortMapping
impl PartialEq for NatPortMapping
impl Eq for NatPortMapping
impl StructuralPartialEq for NatPortMapping
Auto Trait Implementations§
impl Freeze for NatPortMapping
impl RefUnwindSafe for NatPortMapping
impl Send for NatPortMapping
impl Sync for NatPortMapping
impl Unpin for NatPortMapping
impl UnwindSafe for NatPortMapping
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)