pub struct CompiledRedaction { /* private fields */ }Expand description
Pre-compiled redaction patterns for efficient per-request redaction.
Compile once at startup via RedactionConfig::compile and reuse across
requests. Previously, regexes were compiled on every call to
redact_arguments, adding unnecessary CPU overhead under load.
Implementations§
Trait Implementations§
Source§impl Clone for CompiledRedaction
impl Clone for CompiledRedaction
Source§fn clone(&self) -> CompiledRedaction
fn clone(&self) -> CompiledRedaction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompiledRedaction
impl RefUnwindSafe for CompiledRedaction
impl Send for CompiledRedaction
impl Sync for CompiledRedaction
impl Unpin for CompiledRedaction
impl UnsafeUnpin for CompiledRedaction
impl UnwindSafe for CompiledRedaction
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