mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
docs: write reference for hint and category down
This commit is contained in:
@@ -321,7 +321,7 @@ impl<'a> Notification {
|
|||||||
/// icon names.
|
/// icon names.
|
||||||
///
|
///
|
||||||
/// If this function is not called, the application icon will be set from the value set via
|
/// If this function is not called, the application icon will be set from the value set via
|
||||||
/// `set_app_icon()`.
|
/// `set_app_icon()`. Usage is the same.
|
||||||
///
|
///
|
||||||
/// Available since: 0.8.4
|
/// Available since: 0.8.4
|
||||||
///
|
///
|
||||||
@@ -336,7 +336,7 @@ impl<'a> Notification {
|
|||||||
|
|
||||||
/// Sets the application name for the notification.
|
/// Sets the application name for the notification.
|
||||||
///
|
///
|
||||||
/// If this function is not called, the application name will be set from the value used in init() or overridden with set_app_name().
|
/// If this function is not called, the application name will be set from the value used in init() or overridden with set_app_name(). Usage is the same.
|
||||||
///
|
///
|
||||||
/// Available since: 0.7.3
|
/// Available since: 0.7.3
|
||||||
///
|
///
|
||||||
@@ -353,6 +353,8 @@ impl<'a> Notification {
|
|||||||
///
|
///
|
||||||
/// This can be used by the notification server to filter or display the data in a certain way
|
/// This can be used by the notification server to filter or display the data in a certain way
|
||||||
///
|
///
|
||||||
|
/// The only reference to what this even is, is [this thread](https://unix.stackexchange.com/questions/251243/what-do-a-notify-send-notification-category-hint-and-version-parameters-mean). If you know how to use this bad boy, have fun :D
|
||||||
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
/// This function can return LibnotifyError::{NulError}
|
/// This function can return LibnotifyError::{NulError}
|
||||||
pub fn set_category(&mut self, category: &str) -> Result<(), LibnotifyError> {
|
pub fn set_category(&mut self, category: &str) -> Result<(), LibnotifyError> {
|
||||||
@@ -366,6 +368,9 @@ impl<'a> Notification {
|
|||||||
///
|
///
|
||||||
/// Available since: 0.6
|
/// Available since: 0.6
|
||||||
///
|
///
|
||||||
|
///
|
||||||
|
/// The only reference to what this even is, is [this thread](https://unix.stackexchange.com/questions/251243/what-do-a-notify-send-notification-category-hint-and-version-parameters-mean). If you know how to use this bad boy, have fun :D
|
||||||
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
/// This function can return LibnotifyError::{NulError, AllocationError}
|
/// This function can return LibnotifyError::{NulError, AllocationError}
|
||||||
pub fn set_hint(&mut self, key: &str, value: HintValue) -> Result<(), LibnotifyError> {
|
pub fn set_hint(&mut self, key: &str, value: HintValue) -> Result<(), LibnotifyError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user