pub enum NewWindowPolicy {
LoadInSelf,
Cancel,
}Expand description
New-window policy decision returned by the new-window handler.
Variants§
LoadInSelf
Load the URL in the current WebView (replaces current page).
Cancel
Cancel the new-window request without doing anything.
Trait Implementations§
Source§impl Clone for NewWindowPolicy
impl Clone for NewWindowPolicy
Source§fn clone(&self) -> NewWindowPolicy
fn clone(&self) -> NewWindowPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NewWindowPolicy
Source§impl Debug for NewWindowPolicy
impl Debug for NewWindowPolicy
impl Eq for NewWindowPolicy
Source§impl PartialEq for NewWindowPolicy
impl PartialEq for NewWindowPolicy
Source§fn eq(&self, other: &NewWindowPolicy) -> bool
fn eq(&self, other: &NewWindowPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NewWindowPolicy
Auto Trait Implementations§
impl Freeze for NewWindowPolicy
impl RefUnwindSafe for NewWindowPolicy
impl Send for NewWindowPolicy
impl Sync for NewWindowPolicy
impl Unpin for NewWindowPolicy
impl UnsafeUnpin for NewWindowPolicy
impl UnwindSafe for NewWindowPolicy
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