pub enum Source {
SameOrigin,
Src,
None,
UnsafeInline,
Data,
Mediastream,
Https,
Blob,
Filesystem,
StrictDynamic,
UnsafeEval,
Wildcard,
}
Expand description
Define source value
Variants
SameOrigin
Set source 'self'
Src
Set source 'src'
None
Set source 'none'
UnsafeInline
Set source 'unsafe-inline'
Data
Set source data:
Mediastream
Set source mediastream:
Https
Set source https:
Blob
Set source blob:
Filesystem
Set source filesystem:
StrictDynamic
Set source 'strict-dynamic'
UnsafeEval
Set source 'unsafe-eval'
Wildcard
Set source *
Trait Implementations
impl Copy for Source
impl Eq for Source
impl StructuralEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more