pub struct NatMapping {
pub nat_type: NatType,
pub original_src_ip: Ipv4Address,
pub original_src_port: Port,
pub original_dst_ip: Ipv4Address,
pub original_dst_port: Port,
pub translated_src_ip: Ipv4Address,
pub translated_src_port: Port,
pub translated_dst_ip: Ipv4Address,
pub translated_dst_port: Port,
}Expand description
A single NAT mapping recording original and translated addresses
Fields§
§nat_type: NatTypeNAT type
original_src_ip: Ipv4AddressOriginal source address
original_src_port: PortOriginal source port
original_dst_ip: Ipv4AddressOriginal destination address
original_dst_port: PortOriginal destination port
translated_src_ip: Ipv4AddressTranslated source address
translated_src_port: PortTranslated source port
translated_dst_ip: Ipv4AddressTranslated destination address
translated_dst_port: PortTranslated destination port
Implementations§
Source§impl NatMapping
impl NatMapping
Sourcepub fn to_nat_info(&self) -> NatInfo
pub fn to_nat_info(&self) -> NatInfo
Convert to a NatInfo for conntrack
Trait Implementations§
Source§impl Clone for NatMapping
impl Clone for NatMapping
Source§fn clone(&self) -> NatMapping
fn clone(&self) -> NatMapping
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 NatMapping
impl Debug for NatMapping
Source§impl PartialEq for NatMapping
impl PartialEq for NatMapping
impl Copy for NatMapping
impl Eq for NatMapping
impl StructuralPartialEq for NatMapping
Auto Trait Implementations§
impl Freeze for NatMapping
impl RefUnwindSafe for NatMapping
impl Send for NatMapping
impl Sync for NatMapping
impl Unpin for NatMapping
impl UnwindSafe for NatMapping
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)