Skip to main content

Redactor

Trait Redactor 

Source
pub trait Redactor:
    Send
    + Sync
    + 'static {
    // Required method
    fn redact(&self, field: Field, effect: &EffectName, value: &mut Value);
}
Expand description

Rewrites values before the runtime stores them. Applies to every effect the runtime runs, every transition it records and every operator decision.

Any Fn(Field, &EffectName, &mut Value) is a redactor.

Required Methods§

Source

fn redact(&self, field: Field, effect: &EffectName, value: &mut Value)

Rewrites value, of field, of an effect named effect, in place.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Redactor for RedactKeys

Source§

impl<F> Redactor for F
where F: Fn(Field, &EffectName, &mut Value) + Send + Sync + 'static,