Struct pfctl::RedirectRuleBuilder
source · pub struct RedirectRuleBuilder { /* private fields */ }
Expand description
Builder for RedirectRule
.
Implementations§
source§impl RedirectRuleBuilder
impl RedirectRuleBuilder
pub fn action<VALUE: Into<RedirectRuleAction>>( &mut self, value: VALUE ) -> &mut Self
pub fn direction<VALUE: Into<Direction>>(&mut self, value: VALUE) -> &mut Self
pub fn quick<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn log<VALUE: Into<RuleLogSet>>(&mut self, value: VALUE) -> &mut Self
pub fn interface<VALUE: Into<Interface>>(&mut self, value: VALUE) -> &mut Self
pub fn proto<VALUE: Into<Proto>>(&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
pub fn label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<Uid>>(&mut self, value: VALUE) -> &mut Self
pub fn group<VALUE: Into<Gid>>(&mut self, value: VALUE) -> &mut Self
pub fn redirect_to<VALUE: Into<Endpoint>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build_internal(&self) -> Result<RedirectRule, String>
pub fn build_internal(&self) -> Result<RedirectRule, String>
source§impl RedirectRuleBuilder
impl RedirectRuleBuilder
pub fn build(&self) -> Result<RedirectRule>
Trait Implementations§
source§impl Clone for RedirectRuleBuilder
impl Clone for RedirectRuleBuilder
source§fn clone(&self) -> RedirectRuleBuilder
fn clone(&self) -> RedirectRuleBuilder
Returns a copy 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 moresource§impl Default for RedirectRuleBuilder
impl Default for RedirectRuleBuilder
source§fn default() -> RedirectRuleBuilder
fn default() -> RedirectRuleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RedirectRuleBuilder
impl RefUnwindSafe for RedirectRuleBuilder
impl Send for RedirectRuleBuilder
impl Sync for RedirectRuleBuilder
impl Unpin for RedirectRuleBuilder
impl UnwindSafe for RedirectRuleBuilder
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