Trait tauri_runtime::menu::TrayHandle

source ·
pub trait TrayHandle:
    Debug
    + Clone
    + Send
    + Sync {
    // Required methods
    fn set_icon(&self, icon: Icon) -> Result<()>;
    fn set_menu(&self, menu: SystemTrayMenu) -> Result<()>;
    fn update_item(&self, id: u16, update: MenuUpdate) -> Result<()>;
    fn set_tooltip(&self, tooltip: &str) -> Result<()>;
    fn destroy(&self) -> Result<()>;
}

Required Methods§

source

fn set_icon(&self, icon: Icon) -> Result<()>

source

fn set_menu(&self, menu: SystemTrayMenu) -> Result<()>

source

fn update_item(&self, id: u16, update: MenuUpdate) -> Result<()>

source

fn set_tooltip(&self, tooltip: &str) -> Result<()>

source

fn destroy(&self) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§