user_notify/xdg_category.rs
1/// Category for the notification
2///
3/// <https://specifications.freedesktop.org/notification-spec/latest/categories.html>
4#[derive(Debug)]
5pub enum XdgNotificationCategory {
6 /// A generic audio or video call notification that doesn't fit into any other category.
7 Call,
8 /// An audio or video call was ended.
9 CallEnded,
10 /// A audio or video call is incoming.
11 CallIncoming,
12 /// An incoming audio or video call was not answered.
13 CallUnanswered,
14 /// A generic device-related notification that doesn't fit into any other category.
15 Device,
16 /// A device, such as a USB device, was added to the system.
17 DeviceAdded,
18 /// A device had some kind of error.
19 DeviceError,
20 /// A device, such as a USB device, was removed from the system.
21 DeviceRemoved,
22 /// A generic e-mail-related notification that doesn't fit into any other category.
23 Email,
24 /// A new e-mail notification.
25 EmailArrived,
26 /// A notification stating that an e-mail has bounced.
27 EmailBounced,
28 /// A generic instant message-related notification that doesn't fit into any other category.
29 Im,
30 /// An instant message error notification.
31 ImError,
32 /// A received instant message notification.
33 ImReceived,
34 /// A generic network notification that doesn't fit into any other category.
35 Network,
36 /// A network connection notification, such as successful sign-on to a network service. This should not be confused with `device.added` for new network devices.
37 NetworkConnected,
38 /// A network disconnected notification. This should not be confused with `device.removed` for disconnected network devices.
39 NetworkDisconnected,
40 /// A network-related or connection-related error.
41 NetworkError,
42 /// A generic presence change notification that doesn't fit into any other category, such as going away or idle.
43 Presence,
44 /// An offline presence change notification.
45 PresenceOffline,
46 /// An online presence change notification.
47 PresenceOnline,
48 /// A generic file transfer or download notification that doesn't fit into any other category.
49 Transfer,
50 /// A file transfer or download complete notification.
51 TransferComplete,
52 /// A file transfer or download error.
53 TransferError,
54 /// Allows custom Category
55 /// If it is not standard, then category should be in the form of "x-vendor.class.name."
56 Custom(String),
57}