Crate ksni

Source
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§

blockingblocking
The blocking API
menu
Types used to construct a menu

Structs§

Handle
Handle to the tray
Icon
An ARGB32 image
ShutdownAwaiter
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
MenuItem
All types of menu item
OfflineReason
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.
TextDirection
Direction of texts

Traits§

Tray
A system tray, implement this to create your tray
TrayMethods
Provides methods for Tray