#[repr(C)]pub struct JSPrincipalsCallbacks {
pub write: Option<unsafe extern "C" fn(arg1: *mut JSPrincipals, cx: *mut JSContext, writer: *mut JSStructuredCloneWriter) -> bool>,
pub isSystemOrAddonPrincipal: Option<unsafe extern "C" fn(arg1: *mut JSPrincipals) -> bool>,
}
Fields§
§write: Option<unsafe extern "C" fn(arg1: *mut JSPrincipals, cx: *mut JSContext, writer: *mut JSStructuredCloneWriter) -> bool>
§isSystemOrAddonPrincipal: Option<unsafe extern "C" fn(arg1: *mut JSPrincipals) -> bool>
Trait Implementations§
Source§impl Clone for JSPrincipalsCallbacks
impl Clone for JSPrincipalsCallbacks
Source§fn clone(&self) -> JSPrincipalsCallbacks
fn clone(&self) -> JSPrincipalsCallbacks
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 JSPrincipalsCallbacks
impl Debug for JSPrincipalsCallbacks
Source§impl PartialEq for JSPrincipalsCallbacks
impl PartialEq for JSPrincipalsCallbacks
impl Copy for JSPrincipalsCallbacks
impl StructuralPartialEq for JSPrincipalsCallbacks
Auto Trait Implementations§
impl Freeze for JSPrincipalsCallbacks
impl RefUnwindSafe for JSPrincipalsCallbacks
impl Send for JSPrincipalsCallbacks
impl Sync for JSPrincipalsCallbacks
impl Unpin for JSPrincipalsCallbacks
impl UnwindSafe for JSPrincipalsCallbacks
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