pub struct Handle { /* private fields */ }
Expand description
A fully configured WAF instance.
This is obtained by Builder::build
and provides facility to create new Context
that use the underlying instance’s configuration.
Implementations§
Source§impl Handle
impl Handle
Sourcepub fn new_context(&self) -> Context
pub fn new_context(&self) -> Context
Creates a new Context
from this instance.
Sourcepub fn known_actions(&self) -> Vec<&CStr>
pub fn known_actions(&self) -> Vec<&CStr>
Returns the list of actions that may be produced by this instance’s ruleset.
Sourcepub fn known_addresses(&self) -> Vec<&CStr>
pub fn known_addresses(&self) -> Vec<&CStr>
Returns the list of addresses that are used by this instance’s ruleset.
Sending data for addresses not in this list to Context::run
should be avoided as this
data will never result in any side-effects.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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