mac_usernotifications/
error.rs1#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
3#[non_exhaustive]
4pub enum Error {
5 #[error("No bundle identifier found. UNUserNotificationCenter requires a valid .app bundle.")]
7 NoBundleIdentifier,
8
9 #[error("macOS rejected the notification request")]
11 NotificationRejected,
12
13 #[error("Response delivery was interrupted")]
15 ResponseDeliveryInterupted(#[from] futures_channel::oneshot::Canceled),
16
17 #[error("Mainthread not running")]
19 MainThreadNotRunning,
20}