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§
fn subscribed_events(&self) -> &[EventName]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".