pub struct NatRuleBuilder { /* private fields */ }Expand description
Builder for NatRule.
Implementations§
Source§impl NatRuleBuilder
impl NatRuleBuilder
pub fn action<VALUE: Into<NatRuleAction>>(&mut self, value: VALUE) -> &mut Self
pub fn interface<VALUE: Into<Interface>>(&mut self, value: VALUE) -> &mut Self
pub fn af<VALUE: Into<AddrFamily>>(&mut self, value: VALUE) -> &mut Self
pub fn from<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self
pub fn to<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for NatRuleBuilder
impl Clone for NatRuleBuilder
Source§fn clone(&self) -> NatRuleBuilder
fn clone(&self) -> NatRuleBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NatRuleBuilder
impl RefUnwindSafe for NatRuleBuilder
impl Send for NatRuleBuilder
impl Sync for NatRuleBuilder
impl Unpin for NatRuleBuilder
impl UnwindSafe for NatRuleBuilder
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