pub enum NewWindowResponse<R: Runtime> {
Allow,
Create {
window: WebviewWindow<R>,
},
Deny,
}Expand description
Response for the new window request handler.
Variants§
Allow
Allow the window to be opened with the default implementation.
Create
Allow the window to be opened, with the given window.
§Platform-specific:
Linux: The webview must be related to the caller webview. See WebviewBuilder::with_related_view.
Windows: The webview must use the same environment as the caller webview. See [WebviewBuilder::with_environment].
macOS: The webview must use the same webview configuration as the caller webview. See [WebviewBuilder::with_webview_configuration] and [NewWindowFeatures::webview_configuration].
Fields
§
window: WebviewWindow<R>Window that was created.
Deny
Deny the window from being opened.
Auto Trait Implementations§
impl<R> Freeze for NewWindowResponse<R>where
<R as Runtime<EventLoopMessage>>::WindowDispatcher: Freeze,
<R as Runtime<EventLoopMessage>>::Handle: Freeze,
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Freeze,
impl<R> !RefUnwindSafe for NewWindowResponse<R>
impl<R> Send for NewWindowResponse<R>
impl<R> Sync for NewWindowResponse<R>
impl<R> Unpin for NewWindowResponse<R>where
<R as Runtime<EventLoopMessage>>::WindowDispatcher: Unpin,
<R as Runtime<EventLoopMessage>>::Handle: Unpin,
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: Unpin,
impl<R> UnsafeUnpin for NewWindowResponse<R>where
<R as Runtime<EventLoopMessage>>::WindowDispatcher: UnsafeUnpin,
<R as Runtime<EventLoopMessage>>::Handle: UnsafeUnpin,
<R as Runtime<EventLoopMessage>>::WebviewDispatcher: UnsafeUnpin,
impl<R> !UnwindSafe for NewWindowResponse<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