pub enum NewWindowResponse {
Allow,
Create {
window_id: WindowId,
},
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 WebviewAttributes::related_view
.
Windows: The webview must use the same environment as the caller webview. See [WebviewAttributes::environment
].
Deny
Deny the window from being opened.
Auto Trait Implementations§
impl Freeze for NewWindowResponse
impl RefUnwindSafe for NewWindowResponse
impl Send for NewWindowResponse
impl Sync for NewWindowResponse
impl Unpin for NewWindowResponse
impl UnwindSafe for NewWindowResponse
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