#[repr(C)]pub struct JSSecurityCallbacks {
pub contentSecurityPolicyAllows: Option<unsafe extern "C" fn(*mut JSContext, RuntimeCode, Handle<*mut JSString>, CompilationType, Handle<StackGCVector<*mut JSString>>, Handle<*mut JSString>, Handle<StackGCVector<Value>>, Handle<Value>, *mut bool) -> bool>,
pub codeForEvalGets: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, MutableHandle<*mut JSString>) -> bool>,
pub subsumes: Option<unsafe extern "C" fn(*mut JSPrincipals, *mut JSPrincipals) -> bool>,
}
Fields§
§contentSecurityPolicyAllows: Option<unsafe extern "C" fn(*mut JSContext, RuntimeCode, Handle<*mut JSString>, CompilationType, Handle<StackGCVector<*mut JSString>>, Handle<*mut JSString>, Handle<StackGCVector<Value>>, Handle<Value>, *mut bool) -> bool>
§codeForEvalGets: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, MutableHandle<*mut JSString>) -> bool>
§subsumes: Option<unsafe extern "C" fn(*mut JSPrincipals, *mut JSPrincipals) -> bool>
Trait Implementations§
Source§impl Clone for JSSecurityCallbacks
impl Clone for JSSecurityCallbacks
Source§fn clone(&self) -> JSSecurityCallbacks
fn clone(&self) -> JSSecurityCallbacks
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 moreSource§impl Debug for JSSecurityCallbacks
impl Debug for JSSecurityCallbacks
Source§impl PartialEq for JSSecurityCallbacks
impl PartialEq for JSSecurityCallbacks
impl Copy for JSSecurityCallbacks
impl StructuralPartialEq for JSSecurityCallbacks
Auto Trait Implementations§
impl Freeze for JSSecurityCallbacks
impl RefUnwindSafe for JSSecurityCallbacks
impl Send for JSSecurityCallbacks
impl Sync for JSSecurityCallbacks
impl Unpin for JSSecurityCallbacks
impl UnwindSafe for JSSecurityCallbacks
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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