pub(crate) trait SecurityPolicyViolationEventMethods<D: DomTypes> {
Show 14 methods
// Required methods
fn DocumentURI(&self) -> USVString;
fn Referrer(&self) -> USVString;
fn BlockedURI(&self) -> USVString;
fn EffectiveDirective(&self) -> DOMString;
fn ViolatedDirective(&self) -> DOMString;
fn OriginalPolicy(&self) -> DOMString;
fn SourceFile(&self) -> USVString;
fn Sample(&self) -> DOMString;
fn Disposition(&self) -> SecurityPolicyViolationEventDisposition;
fn StatusCode(&self) -> u16;
fn LineNumber(&self) -> u32;
fn ColumnNumber(&self) -> u32;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &SecurityPolicyViolationEventInit,
) -> DomRoot<D::SecurityPolicyViolationEvent>;
}
Required Methods§
fn DocumentURI(&self) -> USVString
fn Referrer(&self) -> USVString
fn BlockedURI(&self) -> USVString
fn EffectiveDirective(&self) -> DOMString
fn ViolatedDirective(&self) -> DOMString
fn OriginalPolicy(&self) -> DOMString
fn SourceFile(&self) -> USVString
fn Sample(&self) -> DOMString
fn Disposition(&self) -> SecurityPolicyViolationEventDisposition
fn StatusCode(&self) -> u16
fn LineNumber(&self) -> u32
fn ColumnNumber(&self) -> u32
fn IsTrusted(&self) -> bool
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &SecurityPolicyViolationEventInit, ) -> DomRoot<D::SecurityPolicyViolationEvent>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.