pub trait CspViolationHandler:
Send
+ Debug
+ MallocSizeOf {
// Required methods
fn process_violations(&self, violations: Vec<Violation>);
fn clone(&self) -> Box<dyn CspViolationHandler>;
}Expand description
A callback that will be invoked on the Fetch thread if a web font download results in CSP violations. This handler will be cloned each time a new web font download is initiated.
Required Methods§
fn process_violations(&self, violations: Vec<Violation>)
fn clone(&self) -> Box<dyn CspViolationHandler>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".