Skip to main content

NotificationSink

Trait NotificationSink 

Source
pub trait NotificationSink {
    type Error;

    // Required method
    fn notify(&mut self, event: &NotificationEvent) -> Result<(), Self::Error>;
}
Expand description

Notification-channel contract, decoupled from any specific transport (webhook, email, push, broker action). Deterministic chart-kit events (alerts, scenario transitions, fills) are the producer; the transport is entirely the consumer’s concern.

Required Associated Types§

Required Methods§

Source

fn notify(&mut self, event: &NotificationEvent) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§