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)>
Returns 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.
Auto Trait Implementations§
impl Freeze for NotificationError
impl RefUnwindSafe for NotificationError
impl Send for NotificationError
impl Sync for NotificationError
impl Unpin for NotificationError
impl UnwindSafe for NotificationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more