Struct tauri::window::MenuHandle [−][src]
Expand description
A handle to a system tray. Allows updating the context menu items.
Implementations
This is supported on crate feature menu
only.
This is supported on crate feature
menu
only.Gets a handle to the menu item that has the specified id
.
This is supported on crate feature menu
only.
This is supported on crate feature
menu
only.Whether the menu is visible or not.
Panics
Panics if the app is not running yet, usually when called on the setup
closure.
You can spawn a task to use the API using the async_runtime
to prevent the panic.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for MenuHandle<R> where
<R as Runtime>::Dispatcher: RefUnwindSafe,
impl<R> Send for MenuHandle<R>
impl<R> Sync for MenuHandle<R> where
<R as Runtime>::Dispatcher: Sync,
impl<R> Unpin for MenuHandle<R> where
<R as Runtime>::Dispatcher: Unpin,
impl<R> UnwindSafe for MenuHandle<R> where
<R as Runtime>::Dispatcher: UnwindSafe,
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