Enum tauri::Icon [−][src]
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.
Icon from raw bytes.
Implementations
This is supported on crate feature system-tray
only.
This is supported on crate feature
system-tray
only.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 Icon
impl UnwindSafe for Icon
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V