Skip to main content

NotificationSink

Trait NotificationSink 

Source
pub trait NotificationSink: Send + Sync {
    // Required method
    fn notify(
        &self,
        channel: &NotificationChannel,
        payload: &NotificationPayload,
    ) -> Result<(), NotifyError>;
}
Expand description

Delivers a notification to a single channel.

In production, backed by the Tauri command surface (desktop badge), APNs/FCM (push — planned), and reqwest (webhook). In tests, use RecordingNotificationSink.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§