Struct pfctl::AnchorChange
source · pub struct AnchorChange { /* private fields */ }
Expand description
Structure that describes anchor rules manipulation allowing for targeted changes in anchors. The rules set to this structure will replace the active rules by transaction. Not setting either of rules will leave active rules untouched by transaction. In contrast, setting an empty vector for either of rules will remove the corresponding rules.
Implementations§
source§impl AnchorChange
impl AnchorChange
pub fn set_filter_rules(&mut self, rules: Vec<FilterRule>)
pub fn set_redirect_rules(&mut self, rules: Vec<RedirectRule>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnchorChange
impl RefUnwindSafe for AnchorChange
impl Send for AnchorChange
impl Sync for AnchorChange
impl Unpin for AnchorChange
impl UnwindSafe for AnchorChange
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