Struct pfctl::FilterRuleBuilder
source · pub struct FilterRuleBuilder { /* private fields */ }
Expand description
Builder for FilterRule
.
Implementations§
source§impl FilterRuleBuilder
impl FilterRuleBuilder
pub fn action<VALUE: Into<FilterRuleAction>>( &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 route<VALUE: Into<Route>>(&mut self, value: VALUE) -> &mut Self
pub fn keep_state<VALUE: Into<StatePolicy>>( &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 tcp_flags<VALUE: Into<TcpFlags>>(&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 icmp_type<VALUE: Into<Option<IcmpType>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn build_internal(&self) -> Result<FilterRule, String>
pub fn build_internal(&self) -> Result<FilterRule, String>
source§impl FilterRuleBuilder
impl FilterRuleBuilder
pub fn build(&self) -> Result<FilterRule>
Trait Implementations§
source§impl Clone for FilterRuleBuilder
impl Clone for FilterRuleBuilder
source§fn clone(&self) -> FilterRuleBuilder
fn clone(&self) -> FilterRuleBuilder
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 FilterRuleBuilder
impl Default for FilterRuleBuilder
source§fn default() -> FilterRuleBuilder
fn default() -> FilterRuleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterRuleBuilder
impl RefUnwindSafe for FilterRuleBuilder
impl Send for FilterRuleBuilder
impl Sync for FilterRuleBuilder
impl Unpin for FilterRuleBuilder
impl UnwindSafe for FilterRuleBuilder
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