#[repr(C)]pub struct SecurityPolicyViolationEvent {Show 13 fields
event: Event,
document_uri: USVString,
referrer: USVString,
blocked_uri: USVString,
effective_directive: DOMString,
violated_directive: DOMString,
original_policy: DOMString,
source_file: USVString,
sample: DOMString,
disposition: SecurityPolicyViolationEventDisposition,
status_code: u16,
line_number: u32,
column_number: u32,
}
Fields§
§event: Event
§document_uri: USVString
§referrer: USVString
§blocked_uri: USVString
§effective_directive: DOMString
§violated_directive: DOMString
§original_policy: DOMString
§source_file: USVString
§sample: DOMString
§disposition: SecurityPolicyViolationEventDisposition
§status_code: u16
§line_number: u32
§column_number: u32
Implementations§
source§impl SecurityPolicyViolationEvent
impl SecurityPolicyViolationEvent
fn new_inherited( init: &SecurityPolicyViolationEventInit, ) -> SecurityPolicyViolationEvent
pub fn new_initialized( global: &GlobalScope, init: &SecurityPolicyViolationEventInit, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Root<Dom<SecurityPolicyViolationEvent>>
fn new_with_proto( global: &GlobalScope, proto: Option<HandleObject<'_>>, type_: Atom, bubbles: EventBubbles, cancelable: EventCancelable, init: &SecurityPolicyViolationEventInit, can_gc: CanGc, ) -> Root<Dom<Self>>
pub fn new( global: &GlobalScope, type_: Atom, bubbles: EventBubbles, cancelable: EventCancelable, init: &SecurityPolicyViolationEventInit, can_gc: CanGc, ) -> Root<Dom<Self>>
Trait Implementations§
source§impl Castable for SecurityPolicyViolationEvent
impl Castable for SecurityPolicyViolationEvent
source§impl DomObjectWrap for SecurityPolicyViolationEvent
impl DomObjectWrap for SecurityPolicyViolationEvent
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::SecurityPolicyViolationEventBinding::SecurityPolicyViolationEvent_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::securitypolicyviolationevent::SecurityPolicyViolationEvent>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::securitypolicyviolationevent::SecurityPolicyViolationEvent>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::SecurityPolicyViolationEventBinding::SecurityPolicyViolationEvent_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::securitypolicyviolationevent::SecurityPolicyViolationEvent>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::securitypolicyviolationevent::SecurityPolicyViolationEvent>>}
Function pointer to the general wrap function type
source§impl MallocSizeOf for SecurityPolicyViolationEvent
impl MallocSizeOf for SecurityPolicyViolationEvent
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for SecurityPolicyViolationEvent
impl PartialEq for SecurityPolicyViolationEvent
source§impl SecurityPolicyViolationEventMethods for SecurityPolicyViolationEvent
impl SecurityPolicyViolationEventMethods for SecurityPolicyViolationEvent
source§fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
init: &SecurityPolicyViolationEventInit,
) -> Root<Dom<Self>>
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, init: &SecurityPolicyViolationEventInit, ) -> Root<Dom<Self>>
source§fn DocumentURI(&self) -> USVString
fn DocumentURI(&self) -> USVString
source§fn BlockedURI(&self) -> USVString
fn BlockedURI(&self) -> USVString
source§fn EffectiveDirective(&self) -> DOMString
fn EffectiveDirective(&self) -> DOMString
source§fn ViolatedDirective(&self) -> DOMString
fn ViolatedDirective(&self) -> DOMString
source§fn OriginalPolicy(&self) -> DOMString
fn OriginalPolicy(&self) -> DOMString
source§fn SourceFile(&self) -> USVString
fn SourceFile(&self) -> USVString
source§fn StatusCode(&self) -> u16
fn StatusCode(&self) -> u16
source§fn LineNumber(&self) -> u32
fn LineNumber(&self) -> u32
source§fn ColumnNumber(&self) -> u32
fn ColumnNumber(&self) -> u32
impl DerivedFrom<Event> for SecurityPolicyViolationEvent
impl Eq for SecurityPolicyViolationEvent
Auto Trait Implementations§
impl !Freeze for SecurityPolicyViolationEvent
impl !RefUnwindSafe for SecurityPolicyViolationEvent
impl !Send for SecurityPolicyViolationEvent
impl !Sync for SecurityPolicyViolationEvent
impl Unpin for SecurityPolicyViolationEvent
impl !UnwindSafe for SecurityPolicyViolationEvent
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert