Struct tao::system_tray::SystemTrayBuilder [−][src]
pub struct SystemTrayBuilder(_);
Expand description
Object that allows you to build SystemTray instance.
Implementations
Creates a new SystemTray for platforms where this is appropriate.
Platform-specific
- macOS / Windows:: receive icon as bytes (
Vec<u8>
) - Linux:: receive icon’s path (
PathBuf
)
pub fn build<T: 'static>(
self,
window_target: &EventLoopWindowTarget<T>
) -> Result<SystemTray, OsError>
pub fn build<T: 'static>(
self,
window_target: &EventLoopWindowTarget<T>
) -> Result<SystemTray, OsError>
Builds the SystemTray.
Possible causes of error include denied permission, incompatible system, and lack of memory.