pub struct Context { /* private fields */ }Expand description
A WAF Context that can be used to evaluate the configured ruleset against address data.
This is obtained by calling Handle::new_context, and a given Context should only
be used to handle data for a single request.
Implementations§
Source§impl Context
impl Context
Sourcepub fn new_subcontext(&self) -> Result<Subcontext, InternalError>
pub fn new_subcontext(&self) -> Result<Subcontext, InternalError>
Creates a new Subcontext from this Context.
§Errors
Returns an error if the WAF encountered an internal error while creating the subcontext. This will not happen unless there is a bug in the WAF.
Trait Implementations§
Source§impl RunnableContext for Context
impl RunnableContext for Context
impl Send for Context
impl Sync for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Unpin for Context
impl UnwindSafe for Context
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