pub struct NatConfig {
pub hair_pinning: bool,
pub symmetric: bool,
pub blacklist_unrecognized_addrs: bool,
pub restrict_endpoints: bool,
pub forward_ports: Vec<(Protocol, u16, SocketAddrV4)>,
}
Fields§
§hair_pinning: bool
§symmetric: bool
§blacklist_unrecognized_addrs: bool
§restrict_endpoints: bool
§forward_ports: Vec<(Protocol, u16, SocketAddrV4)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NatConfig
impl RefUnwindSafe for NatConfig
impl Send for NatConfig
impl Sync for NatConfig
impl Unpin for NatConfig
impl UnwindSafe for NatConfig
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