Skip to main content

Tamper

Trait Tamper 

Source
pub trait Tamper: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn apply(&self, input: &str) -> String;
    fn manifest(&self) -> TamperManifest;
}
Expand description

Every plugin — TOML or WASM — implements this trait.

The trait is object-safe so plugins can be stored as Box<dyn Tamper>.

Required Methods§

Source

fn name(&self) -> &str

Unique, ASCII-only snake_case name. Must not collide with built-ins.

Source

fn apply(&self, input: &str) -> String

Transform a payload for WAF evasion.

Source

fn manifest(&self) -> TamperManifest

Structured metadata every plugin must provide.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§