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
sourceimpl Debug for NotificationError
impl Debug for NotificationError
sourceimpl Display for NotificationError
impl Display for NotificationError
sourceimpl Error for NotificationError
impl Error for NotificationError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<NotificationError> for Error
impl From<NotificationError> for Error
sourcefn from(e: NotificationError) -> Error
fn from(e: NotificationError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for NotificationError
impl Send for NotificationError
impl Sync for NotificationError
impl Unpin for NotificationError
impl UnwindSafe for NotificationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more