Struct bitcoin_qt::Notificator
source · pub struct Notificator { /* private fields */ }
Expand description
| Cross-platform desktop notification | client. |
Implementations§
source§impl Notificator
impl Notificator
sourcepub fn new(program_name: &String, tray_icon: *mut u32, parent: *mut u32) -> Self
pub fn new(program_name: &String, tray_icon: *mut u32, parent: *mut u32) -> Self
| Create a new notificator. | | ———– | @note | | Ownership of trayIcon is not transferred | to this object. |
pub fn notify_systray( &mut self, cls: NotificatorClass, title: &String, text: &String, millis_timeout: i32 )
sourcepub fn notify(
&mut self,
cls: NotificatorClass,
title: &String,
text: &String,
icon: Option<&QIcon>,
millis_timeout: Option<i32>
)
pub fn notify( &mut self, cls: NotificatorClass, title: &String, text: &String, icon: Option<&QIcon>, millis_timeout: Option<i32> )
| Show notification message. | | ———– | @note | | Platform implementations are free | to ignore any of the provided fields | except for \a text. | | ———– | @param[in] cls | | general message class | ––––– | @param[in] title | | title shown with message | ––––– | @param[in] text | | message content | ––––– | @param[in] icon | | optional icon to show with message | ––––– | @param[in] millisTimeout | | notification timeout in milliseconds | (defaults to 10 seconds) |
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Notificator
impl !Send for Notificator
impl !Sync for Notificator
impl Unpin for Notificator
impl UnwindSafe for Notificator
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more