Struct js::glue::ProxyTraps
[−]
[src]
#[repr(C)]pub struct ProxyTraps { pub enter: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, action: Action, bp: *mut bool) -> bool>, pub getOwnPropertyDescriptor: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: MutableHandle<PropertyDescriptor>) -> bool>, pub defineProperty: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: Handle<PropertyDescriptor>, result: *mut ObjectOpResult) -> bool>, pub ownPropertyKeys: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, props: *mut AutoIdVector) -> bool>, pub delete_: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, result: *mut ObjectOpResult) -> bool>, pub enumerate: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, objp: MutableHandleObject) -> bool>, pub getPrototypeIfOrdinary: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, isOrdinary: *mut bool, protop: MutableHandleObject) -> bool>, pub preventExtensions: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, result: *mut ObjectOpResult) -> bool>, pub isExtensible: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, succeeded: *mut bool) -> bool>, pub has: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, bp: *mut bool) -> bool>, pub get: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, receiver: HandleValue, id: HandleId, vp: MutableHandleValue) -> bool>, pub set: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, v: HandleValue, receiver: HandleValue, result: *mut ObjectOpResult) -> bool>, pub call: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, args: *const CallArgs) -> bool>, pub construct: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, args: *const CallArgs) -> bool>, pub getPropertyDescriptor: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: MutableHandle<PropertyDescriptor>) -> bool>, pub hasOwn: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, bp: *mut bool) -> bool>, pub getOwnEnumerablePropertyKeys: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, props: *mut AutoIdVector) -> bool>, pub nativeCall: Option<unsafe extern "C" fn(cx: *mut JSContext, test: IsAcceptableThis, _impl: NativeImpl, args: CallArgs) -> bool>, pub hasInstance: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, v: MutableHandleValue, bp: *mut bool) -> bool>, pub objectClassIs: Option<unsafe extern "C" fn(obj: HandleObject, classValue: ESClass, cx: *mut JSContext) -> bool>, pub className: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject) -> *const i8>, pub fun_toString: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, indent: u32) -> *mut JSString>, pub boxedValue_unbox: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, vp: MutableHandleValue) -> bool>, pub defaultValue: Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, hint: JSType, vp: MutableHandleValue) -> bool>, pub trace: Option<unsafe extern "C" fn(trc: *mut JSTracer, proxy: *mut JSObject)>, pub finalize: Option<unsafe extern "C" fn(fop: *mut JSFreeOp, proxy: *mut JSObject)>, pub objectMoved: Option<unsafe extern "C" fn(proxy: *mut JSObject, old: *const JSObject)>, pub isCallable: Option<unsafe extern "C" fn(obj: *mut JSObject) -> bool>, pub isConstructor: Option<unsafe extern "C" fn(obj: *mut JSObject) -> bool>, }
Fields
enter: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, action: Action, bp: *mut bool) -> bool>
getOwnPropertyDescriptor: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: MutableHandle<PropertyDescriptor>) -> bool>
defineProperty: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: Handle<PropertyDescriptor>, result: *mut ObjectOpResult) -> bool>
ownPropertyKeys: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, props: *mut AutoIdVector) -> bool>
delete_: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, result: *mut ObjectOpResult) -> bool>
enumerate: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, objp: MutableHandleObject) -> bool>
getPrototypeIfOrdinary: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, isOrdinary: *mut bool, protop: MutableHandleObject) -> bool>
preventExtensions: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, result: *mut ObjectOpResult) -> bool>
isExtensible: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, succeeded: *mut bool) -> bool>
has: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, bp: *mut bool) -> bool>
get: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, receiver: HandleValue, id: HandleId, vp: MutableHandleValue) -> bool>
set: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, v: HandleValue, receiver: HandleValue, result: *mut ObjectOpResult) -> bool>
call: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, args: *const CallArgs) -> bool>
construct: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, args: *const CallArgs) -> bool>
getPropertyDescriptor: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: MutableHandle<PropertyDescriptor>) -> bool>
hasOwn: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, id: HandleId, bp: *mut bool) -> bool>
getOwnEnumerablePropertyKeys: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, props: *mut AutoIdVector) -> bool>
nativeCall: Option<unsafe extern "C" fn(cx: *mut JSContext, test: IsAcceptableThis, _impl: NativeImpl, args: CallArgs) -> bool>
hasInstance: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, v: MutableHandleValue, bp: *mut bool) -> bool>
objectClassIs: Option<unsafe extern "C" fn(obj: HandleObject, classValue: ESClass, cx: *mut JSContext) -> bool>
className: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject) -> *const i8>
fun_toString: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, indent: u32) -> *mut JSString>
boxedValue_unbox: Option<unsafe extern "C" fn(cx: *mut JSContext, proxy: HandleObject, vp: MutableHandleValue) -> bool>
defaultValue: Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, hint: JSType, vp: MutableHandleValue) -> bool>
trace: Option<unsafe extern "C" fn(trc: *mut JSTracer, proxy: *mut JSObject)>
finalize: Option<unsafe extern "C" fn(fop: *mut JSFreeOp, proxy: *mut JSObject)>
objectMoved: Option<unsafe extern "C" fn(proxy: *mut JSObject, old: *const JSObject)>
isCallable: Option<unsafe extern "C" fn(obj: *mut JSObject) -> bool>
isConstructor: Option<unsafe extern "C" fn(obj: *mut JSObject) -> bool>
Trait Implementations
impl Sync for ProxyTraps
[src]
impl Copy for ProxyTraps
[src]
impl Clone for ProxyTraps
[src]
fn clone(&self) -> ProxyTraps
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ProxyTraps
[src]
fn default() -> ProxyTraps
[src]
Returns the "default value" for a type. Read more