Enum notify_rust::error::NotificationError
source · pub enum NotificationError {
ScheduleInThePast,
UnableToSchedule,
UnableToDeliver,
}Expand description
Errors that can occur while interacting with the NSUserNotificationCenter.
Variants§
ScheduleInThePast
Notifications can not be scheduled in the past.
UnableToSchedule
Scheduling a notification caused an error.
UnableToDeliver
Delivering a notification caused an error.
Trait Implementations§
source§impl Debug for NotificationError
impl Debug for NotificationError
source§impl Display for NotificationError
impl Display for NotificationError
source§impl Error for NotificationError
impl Error for NotificationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<NotificationError> for Error
impl From<NotificationError> for Error
source§fn from(e: NotificationError) -> Error
fn from(e: NotificationError) -> Error
Converts to this type from the input type.