Struct tauri_plugin_context_menu::ContextMenu
source · pub struct ContextMenu<R: Runtime> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<R: Runtime> Clone for ContextMenu<R>
impl<R: Runtime> Clone for ContextMenu<R>
source§impl<R: Runtime> Default for ContextMenu<R>
impl<R: Runtime> Default for ContextMenu<R>
source§impl<R: Runtime> Plugin<R> for ContextMenu<R>
impl<R: Runtime> Plugin<R> for ContextMenu<R>
source§fn extend_api(&mut self, invoke: Invoke<R>)
fn extend_api(&mut self, invoke: Invoke<R>)
Extend commands to
crate::Builder::invoke_handler
.source§fn initialize(
&mut self,
app: &AppHandle<R>,
config: Value
) -> Result<(), Box<dyn Error>>
fn initialize( &mut self, app: &AppHandle<R>, config: Value ) -> Result<(), Box<dyn Error>>
Initializes the plugin.
source§fn initialization_script(&self) -> Option<String>
fn initialization_script(&self) -> Option<String>
Add the provided JavaScript to a list of scripts that should be run after the global object has been created,
but before the HTML document has been parsed and before any other script included by the HTML document is run. Read more
source§fn on_page_load(&mut self, window: Window<R>, payload: PageLoadPayload)
fn on_page_load(&mut self, window: Window<R>, payload: PageLoadPayload)
Callback invoked when the webview performs a navigation to a page.
Auto Trait Implementations§
impl<R> !RefUnwindSafe for ContextMenu<R>
impl<R> Send for ContextMenu<R>
impl<R> Sync for ContextMenu<R>
impl<R> Unpin for ContextMenu<R>
impl<R> !UnwindSafe for ContextMenu<R>
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