Skip to main content

is_initted

Function is_initted 

Source
pub fn is_initted() -> bool
Expand description

Gets whether or not libnotify is initialized.

ยงExample

use libnotify_rs::api::functions::{init, is_initted};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    if !is_initted() { // useful for conditional initing
        init("Test app")?;
    }

    Ok(())
}