pub struct DnatRule {
pub orig_addr: Ipv4Addr,
pub orig_port: Option<u16>,
pub new_addr: Ipv4Addr,
pub new_port: Option<u16>,
}Expand description
A DNAT rewrite rule.
Fields§
§orig_addr: Ipv4Addr§orig_port: Option<u16>§new_addr: Ipv4Addr§new_port: Option<u16>Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnatRule
impl RefUnwindSafe for DnatRule
impl Send for DnatRule
impl Sync for DnatRule
impl Unpin for DnatRule
impl UnsafeUnpin for DnatRule
impl UnwindSafe for DnatRule
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