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§
fn set_icon(&self, icon: Icon) -> Result<()>
fn update_item(&self, id: u16, update: MenuUpdate) -> Result<()>
fn set_tooltip(&self, tooltip: &str) -> Result<()>
fn destroy(&self) -> Result<()>
Object Safety§
This trait is not object safe.