Enum tauri_runtime::menu::MenuEntry
source · pub enum MenuEntry {
CustomItem(CustomMenuItem),
NativeItem(MenuItem),
Submenu(Submenu),
}
Expand description
An entry on the system tray menu.
Variants§
CustomItem(CustomMenuItem)
A custom item.
NativeItem(MenuItem)
A native item.
An entry with submenu.
Trait Implementations§
source§impl From<CustomMenuItem> for MenuEntry
impl From<CustomMenuItem> for MenuEntry
source§fn from(item: CustomMenuItem) -> Self
fn from(item: CustomMenuItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MenuEntry
impl RefUnwindSafe for MenuEntry
impl Send for MenuEntry
impl Sync for MenuEntry
impl Unpin for MenuEntry
impl UnwindSafe for MenuEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)