Struct tauri_runtime::window::PendingWindow [−][src]
pub struct PendingWindow<P: Params> { pub label: P::Label, pub window_builder: <<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder, pub webview_attributes: WebviewAttributes, pub rpc_handler: Option<WebviewRpcHandler<P>>, pub file_drop_handler: Option<FileDropHandler<P>>, pub url: String, }
Expand description
A webview window that has yet to be built.
Fields
label: P::Label
The label that the window will be named.
window_builder: <<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder
The WindowBuilder
that the window will be created with.
webview_attributes: WebviewAttributes
The WebviewAttributes
that the webview will be created with.
rpc_handler: Option<WebviewRpcHandler<P>>
How to handle RPC calls on the webview window.
file_drop_handler: Option<FileDropHandler<P>>
How to handle a file dropping onto the webview window.
url: String
The resolved URL to load on the webview.
Implementations
pub fn new(
window_builder: <<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder,
webview_attributes: WebviewAttributes,
label: P::Label
) -> Self
pub fn new(
window_builder: <<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder,
webview_attributes: WebviewAttributes,
label: P::Label
) -> Self
Create a new PendingWindow
with a label and starting url.
pub fn with_config(
window_config: WindowConfig,
webview_attributes: WebviewAttributes,
label: P::Label
) -> Self
pub fn with_config(
window_config: WindowConfig,
webview_attributes: WebviewAttributes,
label: P::Label
) -> Self
Create a new PendingWindow
from a WindowConfig
with a label and starting url.
Auto Trait Implementations
impl<P> !RefUnwindSafe for PendingWindow<P>
impl<P> Send for PendingWindow<P> where
<<<P as Params>::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder: Send,
impl<P> !Sync for PendingWindow<P>
impl<P> Unpin for PendingWindow<P> where
<P as Params>::Label: Unpin,
<<<P as Params>::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder: Unpin,
impl<P> !UnwindSafe for PendingWindow<P>