HasNotificationRules

Trait HasNotificationRules 

Source
pub trait HasNotificationRules {
    // Provided methods
    fn priority(&self) -> u32 { ... }
    fn can_batch(&self) -> bool { ... }
    fn max_retries(&self) -> u32 { ... }
    fn should_deliver(&self) -> bool { ... }
}
Expand description

Trait for notification delivery rules and filtering

Provided Methods§

Source

fn priority(&self) -> u32

Optional delivery priority (higher = more important)

Source

fn can_batch(&self) -> bool

Whether this notification can be batched with others

Source

fn max_retries(&self) -> u32

Maximum retry attempts for delivery

Source

fn should_deliver(&self) -> bool

Check if notification should be delivered

Implementors§