#[non_exhaustive]pub enum Feature {
Show,
Schedule,
Activate,
Close,
PriorityContacts,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Show
Schedule
Activate
Close
Saying why a notification the app showed went away:
set_close_handler.
PriorityContacts
Trait Implementations§
impl Copy for Feature
impl Eq for Feature
Source§impl Feature for Feature
impl Feature for Feature
Source§fn targets(self) -> [Availability; 3]
fn targets(self) -> [Availability; 3]
The feature’s availability on Linux, macOS and the web, in that order.
Prompt: macOS and browsers ask the user before the first notification.
Source§fn availability(self) -> Availability
fn availability(self) -> Availability
Whether the feature can be used on this target. A crate whose build
can leave a backend out overrides this to say so.
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Forget for Feature
impl Freeze for Feature
impl Move for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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