Expand description
A Rust implementation of the KDE/freedesktop StatusNotifierItem specification
See the README.md for an example
§Async Runtime
ksni uses Tokio by default, but can be runtime-agnostic by disabling the “tokio” feature and enabling the “async-io” feature
[dependencies]
ksni = { version = "0.3", default-features = false, features = ["async-io"] }
§Blocking API
Enable the “blocking” feature in Cargo.toml to get a non-async API
[dependencies]
ksni = { version = "0.3", features = ["blocking"] }
Modules§
Structs§
- Handle
- Handle to the tray
- Icon
- An ARGB32 image
- Shutdown
Awaiter - Returned by
Handle::shutdown
- ToolTip
- Extra information associated to the item
Enums§
- Category
- Category of this item.
- Error
- An error while connecting to the StatusNotifierWatcher
- Menu
Item - All types of menu item
- Offline
Reason - Why is the tray offline
- Orientation
- Represent the horizontal or vertical orientation of the scroll request
- Status
- Status of this item or of the associated application.
- Text
Direction - Direction of texts
Traits§
- Tray
- A system tray, implement this to create your tray
- Tray
Methods - Provides methods for
Tray