pub struct VersoWebviewDispatcher<T: UserEvent> { /* private fields */ }
Expand description
The Tauri [WebviewDispatch
] for VersoRuntime
.
Trait Implementations§
Source§impl<T: Clone + UserEvent> Clone for VersoWebviewDispatcher<T>
impl<T: Clone + UserEvent> Clone for VersoWebviewDispatcher<T>
Source§fn clone(&self) -> VersoWebviewDispatcher<T>
fn clone(&self) -> VersoWebviewDispatcher<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: UserEvent> Debug for VersoWebviewDispatcher<T>
impl<T: UserEvent> Debug for VersoWebviewDispatcher<T>
Source§impl<T: UserEvent> WebviewDispatch<T> for VersoWebviewDispatcher<T>
impl<T: UserEvent> WebviewDispatch<T> for VersoWebviewDispatcher<T>
Source§fn on_webview_event<F: Fn(&WebviewEvent) + Send + 'static>(
&self,
f: F,
) -> WebviewEventId
fn on_webview_event<F: Fn(&WebviewEvent) + Send + 'static>( &self, f: F, ) -> WebviewEventId
Unsupported, has no effect when called, the callback will not be called
Source§fn with_webview<F: FnOnce(Box<dyn Any>) + Send + 'static>(
&self,
f: F,
) -> Result<()>
fn with_webview<F: FnOnce(Box<dyn Any>) + Send + 'static>( &self, f: F, ) -> Result<()>
Unsupported, has no effect when called, the callback will not be called
Source§fn close(&self) -> Result<()>
fn close(&self) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_bounds(&self, bounds: Rect) -> Result<()>
fn set_bounds(&self, bounds: Rect) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_size(&self, _size: Size) -> Result<()>
fn set_size(&self, _size: Size) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_position(&self, _position: Position) -> Result<()>
fn set_position(&self, _position: Position) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_focus(&self) -> Result<()>
fn set_focus(&self) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_auto_resize(&self, auto_resize: bool) -> Result<()>
fn set_auto_resize(&self, auto_resize: bool) -> Result<()>
Unsupported, has no effect when called
Source§fn clear_all_browsing_data(&self) -> Result<()>
fn clear_all_browsing_data(&self) -> Result<()>
Unsupported, has no effect when called
Source§fn hide(&self) -> Result<()>
fn hide(&self) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn show(&self) -> Result<()>
fn show(&self) -> Result<()>
Unsupported, has no effect when called, the versoview controls both the webview and the window use the method from the parent window instead
Source§fn set_background_color(&self, color: Option<Color>) -> Result<()>
fn set_background_color(&self, color: Option<Color>) -> Result<()>
Unsupported, has no effect when called
Source§fn open_devtools(&self)
fn open_devtools(&self)
Unsupported, has no effect when called
Source§fn close_devtools(&self)
fn close_devtools(&self)
Unsupported, has no effect when called
Source§fn is_devtools_open(&self) -> Result<bool>
fn is_devtools_open(&self) -> Result<bool>
Always false since we don’t have devtools built-in
Unsupported, always returns an empty vector
Unsupported, always returns an empty vector
Source§type Runtime = VersoRuntime<T>
type Runtime = VersoRuntime<T>
WebviewDispatch
] runs under.Source§fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
fn run_on_main_thread<F: FnOnce() + Send + 'static>(&self, f: F) -> Result<()>
Source§fn eval_script<S: Into<String>>(&self, script: S) -> Result<()>
fn eval_script<S: Into<String>>(&self, script: S) -> Result<()>
WindowDispatch
] represents.