pub enum CrossOriginOpenerPolicy {
SameOrigin,
SameOriginAllowPopups,
UnsafeNone,
}Expand description
Value for the Cross-Origin-Opener-Policy header.
Variants§
SameOrigin
Isolates the browsing context exclusively to same-origin documents.
SameOriginAllowPopups
Allows the document to be added to the same browsing context group as same-origin documents, and cross-origin popups.
UnsafeNone
No isolation. The document may be accessed cross-origin.
Trait Implementations§
Source§impl Clone for CrossOriginOpenerPolicy
impl Clone for CrossOriginOpenerPolicy
Source§fn clone(&self) -> CrossOriginOpenerPolicy
fn clone(&self) -> CrossOriginOpenerPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CrossOriginOpenerPolicy
impl RefUnwindSafe for CrossOriginOpenerPolicy
impl Send for CrossOriginOpenerPolicy
impl Sync for CrossOriginOpenerPolicy
impl Unpin for CrossOriginOpenerPolicy
impl UnsafeUnpin for CrossOriginOpenerPolicy
impl UnwindSafe for CrossOriginOpenerPolicy
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