Struct tauri::test::MockRuntimeHandle
source · pub struct MockRuntimeHandle { /* private fields */ }
Available on crate feature
test
only.Trait Implementations§
source§impl Clone for MockRuntimeHandle
impl Clone for MockRuntimeHandle
source§fn clone(&self) -> MockRuntimeHandle
fn clone(&self) -> MockRuntimeHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MockRuntimeHandle
impl Debug for MockRuntimeHandle
source§impl<T: UserEvent> RuntimeHandle<T> for MockRuntimeHandle
impl<T: UserEvent> RuntimeHandle<T> for MockRuntimeHandle
source§fn create_window(
&self,
pending: PendingWindow<T, Self::Runtime>
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window( &self, pending: PendingWindow<T, Self::Runtime> ) -> Result<DetachedWindow<T, Self::Runtime>>
Create a new webview window.
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<()>
Run a task on the main thread.
type Runtime = MockRuntime
source§fn create_proxy(&self) -> EventProxy
fn create_proxy(&self) -> EventProxy
Creates an
EventLoopProxy
that can be used to dispatch user events to the main event loop.source§fn system_tray(
&self,
system_tray: SystemTray
) -> Result<<Self::Runtime as Runtime<T>>::TrayHandler>
fn system_tray( &self, system_tray: SystemTray ) -> Result<<Self::Runtime as Runtime<T>>::TrayHandler>
Adds an icon to the system tray with the specified menu items.
fn raw_display_handle(&self) -> RawDisplayHandle
Auto Trait Implementations§
impl Freeze for MockRuntimeHandle
impl !RefUnwindSafe for MockRuntimeHandle
impl Send for MockRuntimeHandle
impl Sync for MockRuntimeHandle
impl Unpin for MockRuntimeHandle
impl !UnwindSafe for MockRuntimeHandle
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