pub struct DynRuntimeHandle<T: UserEvent> { /* private fields */ }Expand description
The RuntimeHandle of DynRuntime.
Implementations§
Source§impl<T: UserEvent> DynRuntimeHandle<T>
impl<T: UserEvent> DynRuntimeHandle<T>
Sourcepub fn new<H: RuntimeHandle<T>>(handle: H) -> Self
pub fn new<H: RuntimeHandle<T>>(handle: H) -> Self
Wraps a runtime handle.
Sourcepub fn is<H: RuntimeHandle<T>>(&self) -> bool
pub fn is<H: RuntimeHandle<T>>(&self) -> bool
Whether the wrapped handle is of type H.
Sourcepub fn downcast_ref<H: RuntimeHandle<T>>(&self) -> Option<&H>
pub fn downcast_ref<H: RuntimeHandle<T>>(&self) -> Option<&H>
Returns a reference to the wrapped handle if it is of type H.
Trait Implementations§
Source§impl<T: UserEvent> Clone for DynRuntimeHandle<T>
impl<T: UserEvent> Clone for DynRuntimeHandle<T>
Source§impl<T: UserEvent> RuntimeHandle<T> for DynRuntimeHandle<T>
impl<T: UserEvent> RuntimeHandle<T> for DynRuntimeHandle<T>
type Runtime = DynRuntime<T>
Source§fn create_proxy(&self) -> DynEventLoopProxy<T>
fn create_proxy(&self) -> DynEventLoopProxy<T>
Creates an
EventLoopProxy that can be used to dispatch user events to the main event loop.Source§fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>(
&self,
pending: PendingWindow<T, Self::Runtime>,
after_window_creation: Option<F>,
) -> Result<DetachedWindow<T, Self::Runtime>>
fn create_window<F: Fn(RawWindow<'_>) + Send + 'static>( &self, pending: PendingWindow<T, Self::Runtime>, after_window_creation: Option<F>, ) -> Result<DetachedWindow<T, Self::Runtime>>
Create a new window.
Source§fn create_webview(
&self,
window_id: WindowId,
pending: PendingWebview<T, Self::Runtime>,
) -> Result<DetachedWebview<T, Self::Runtime>>
fn create_webview( &self, window_id: WindowId, pending: PendingWebview<T, Self::Runtime>, ) -> Result<DetachedWebview<T, Self::Runtime>>
Create a new webview.
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.
Source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
Source§fn primary_monitor(&self) -> Result<Option<Monitor>>
fn primary_monitor(&self) -> Result<Option<Monitor>>
Returns the primary monitor of the system. Read more
Source§fn monitor_from_point(&self, x: f64, y: f64) -> Result<Option<Monitor>>
fn monitor_from_point(&self, x: f64, y: f64) -> Result<Option<Monitor>>
Returns the monitor that contains the given point.
Source§fn available_monitors(&self) -> Result<Vec<Monitor>>
fn available_monitors(&self) -> Result<Vec<Monitor>>
Returns the list of all the monitors available on the system.
Source§fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
fn cursor_position(&self) -> Result<PhysicalPosition<f64>>
Get the cursor position relative to the top-left hand corner of the desktop.
Source§fn set_device_event_filter(&self, filter: DeviceEventFilter)
fn set_device_event_filter(&self, filter: DeviceEventFilter)
Change the device event filter mode. Read more
Source§fn custom_scheme_url(&self, scheme: &str, https: bool) -> String
fn custom_scheme_url(&self, scheme: &str, https: bool) -> String
Returns the URL a custom scheme is served from,
e.g.
tauri://localhost or http://tauri.localhost. Read moreSource§fn webview_version(&self) -> Result<String>
fn webview_version(&self) -> Result<String>
Returns the version of the underlying webview engine.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DynRuntimeHandle<T>
impl<T> !UnwindSafe for DynRuntimeHandle<T>
impl<T> Freeze for DynRuntimeHandle<T>
impl<T> Send for DynRuntimeHandle<T>
impl<T> Sync for DynRuntimeHandle<T>
impl<T> Unpin for DynRuntimeHandle<T>
impl<T> UnsafeUnpin for DynRuntimeHandle<T>where
Arc<dyn ErasedRuntimeHandle<T>>: UnsafeUnpin,
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