Skip to main content

RuleEvents

Trait RuleEvents 

Source
pub trait RuleEvents {
    // Required method
    fn subscribed_events(&self) -> &[EventName];
}
Expand description

Let the rules structure provide “what events it is subscribed to”. This way BucketRulesSnapshot does not need to know the internal shape of rules.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§