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

Trait Implementations

impl Sync for ProxyTraps
[src]

impl Copy for ProxyTraps
[src]

impl Clone for ProxyTraps
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ProxyTraps
[src]

[src]

Returns the "default value" for a type. Read more