Struct tauri::window::MenuHandle [−][src]
Expand description
A handle to a system tray. Allows updating the context menu items.
Implementations
Gets a handle to the menu item that has the specified id
.
Whether the menu is visible or not.
Panics
- Panics if the event loop is not running yet, usually when called on the
setup
closure. - Panics when called on the main thread, usually on the
run
closure.
You can spawn a task to use the API using crate::async_runtime::spawn
or std::thread::spawn
to prevent the panic.
Toggles the menu visibility.
Panics
- Panics if the event loop is not running yet, usually when called on the
setup
closure. - Panics when called on the main thread, usually on the
run
closure.
You can spawn a task to use the API using crate::async_runtime::spawn
or std::thread::spawn
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