pub enum CrossOriginEmbedderPolicy {
RequireCorp,
UnsafeNone,
}Expand description
Value for the Cross-Origin-Embedder-Policy header.
Required for SharedArrayBuffer and performance.measureUserAgentSpecificMemory.
Variants§
RequireCorp
Requires all subresources to opt-in to being loaded cross-origin.
UnsafeNone
No embedding restrictions.
Trait Implementations§
Source§impl Clone for CrossOriginEmbedderPolicy
impl Clone for CrossOriginEmbedderPolicy
Source§fn clone(&self) -> CrossOriginEmbedderPolicy
fn clone(&self) -> CrossOriginEmbedderPolicy
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 CrossOriginEmbedderPolicy
impl RefUnwindSafe for CrossOriginEmbedderPolicy
impl Send for CrossOriginEmbedderPolicy
impl Sync for CrossOriginEmbedderPolicy
impl Unpin for CrossOriginEmbedderPolicy
impl UnsafeUnpin for CrossOriginEmbedderPolicy
impl UnwindSafe for CrossOriginEmbedderPolicy
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