Enum tauri_runtime::TrayIcon
source · [−]Expand description
A icon definition.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File(PathBuf)
Icon from file path.
Raw(Vec<u8>)
Icon from raw file bytes.
Implementations
sourceimpl TrayIcon
impl TrayIcon
sourcepub fn into_platform_icon(self) -> PathBuf
pub fn into_platform_icon(self) -> PathBuf
Converts the icon to a the expected system tray format. We expect the code that passes the Icon enum to have already checked the platform.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TrayIcon
impl Send for TrayIcon
impl Sync for TrayIcon
impl Unpin for TrayIcon
impl UnwindSafe for TrayIcon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more