Struct script::dom::testbinding::TestBinding
source · #[repr(C)]pub struct TestBinding {
reflector_: Reflector,
url: MutableWeakRef<URL>,
}
Fields§
§reflector_: Reflector
§url: MutableWeakRef<URL>
Implementations§
source§impl TestBinding
impl TestBinding
fn __assert_parent_type(&self)
source§impl TestBinding
impl TestBinding
pub fn type_id(&self) -> &'static TestBindingTypeId
source§impl TestBinding
impl TestBinding
fn new_inherited() -> TestBinding
fn new( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Root<Dom<TestBinding>>
pub fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<TestBinding>>, Error>
pub fn Constructor_( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, nums: Vec<f64>, ) -> Result<Root<Dom<TestBinding>>, Error>
pub fn Constructor__( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, num: f64, ) -> Result<Root<Dom<TestBinding>>, Error>
source§impl TestBinding
impl TestBinding
pub fn StaticThrowToRejectPromise(_: &GlobalScope) -> Result<Rc<Promise>, Error>
pub fn StaticInternalThrowToRejectPromise( _: &GlobalScope, _arg: u64, ) -> Rc<Promise>
source§impl TestBinding
impl TestBinding
pub fn BooleanAttributeStatic(_: &GlobalScope) -> bool
pub fn SetBooleanAttributeStatic(_: &GlobalScope, _: bool)
pub fn ReceiveVoidStatic(_: &GlobalScope)
pub fn PrefControlledStaticAttributeDisabled(_: &GlobalScope) -> bool
pub fn PrefControlledStaticAttributeEnabled(_: &GlobalScope) -> bool
pub fn PrefControlledStaticMethodDisabled(_: &GlobalScope)
pub fn PrefControlledStaticMethodEnabled(_: &GlobalScope)
pub fn FuncControlledStaticAttributeDisabled(_: &GlobalScope) -> bool
pub fn FuncControlledStaticAttributeEnabled(_: &GlobalScope) -> bool
pub fn FuncControlledStaticMethodDisabled(_: &GlobalScope)
pub fn FuncControlledStaticMethodEnabled(_: &GlobalScope)
source§impl TestBinding
impl TestBinding
pub fn condition_satisfied(_: SafeJSContext, _: HandleObject<'_>) -> bool
pub fn condition_unsatisfied(_: SafeJSContext, _: HandleObject<'_>) -> bool
Trait Implementations§
source§impl Castable for TestBinding
impl Castable for TestBinding
source§impl DomObject for TestBinding
impl DomObject for TestBinding
source§impl DomObjectWrap for TestBinding
impl DomObjectWrap for TestBinding
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::TestBindingBinding::TestBinding_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::testbinding::TestBinding>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::testbinding::TestBinding>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::TestBindingBinding::TestBinding_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::testbinding::TestBinding>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::testbinding::TestBinding>>}
Function pointer to the general wrap function type
source§impl HasParent for TestBinding
impl HasParent for TestBinding
source§impl IDLInterface for TestBinding
impl IDLInterface for TestBinding
source§impl MallocSizeOf for TestBinding
impl MallocSizeOf for TestBinding
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for TestBinding
impl MutDomObject for TestBinding
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl PartialEq for TestBinding
impl PartialEq for TestBinding
source§impl TestBindingMethods for TestBinding
impl TestBindingMethods for TestBinding
fn BooleanAttribute(&self) -> bool
fn SetBooleanAttribute(&self, _: bool)
fn ByteAttribute(&self) -> i8
fn SetByteAttribute(&self, _: i8)
fn OctetAttribute(&self) -> u8
fn SetOctetAttribute(&self, _: u8)
fn ShortAttribute(&self) -> i16
fn SetShortAttribute(&self, _: i16)
fn UnsignedShortAttribute(&self) -> u16
fn SetUnsignedShortAttribute(&self, _: u16)
fn LongAttribute(&self) -> i32
fn SetLongAttribute(&self, _: i32)
fn UnsignedLongAttribute(&self) -> u32
fn SetUnsignedLongAttribute(&self, _: u32)
fn LongLongAttribute(&self) -> i64
fn SetLongLongAttribute(&self, _: i64)
fn UnsignedLongLongAttribute(&self) -> u64
fn SetUnsignedLongLongAttribute(&self, _: u64)
fn UnrestrictedFloatAttribute(&self) -> f32
fn SetUnrestrictedFloatAttribute(&self, _: f32)
fn FloatAttribute(&self) -> Finite<f32>
fn SetFloatAttribute(&self, _: Finite<f32>)
fn UnrestrictedDoubleAttribute(&self) -> f64
fn SetUnrestrictedDoubleAttribute(&self, _: f64)
fn DoubleAttribute(&self) -> Finite<f64>
fn SetDoubleAttribute(&self, _: Finite<f64>)
fn StringAttribute(&self) -> DOMString
fn SetStringAttribute(&self, _: DOMString)
fn UsvstringAttribute(&self) -> USVString
fn SetUsvstringAttribute(&self, _: USVString)
fn ByteStringAttribute(&self) -> ByteString
fn SetByteStringAttribute(&self, _: ByteString)
fn EnumAttribute(&self) -> TestEnum
fn SetEnumAttribute(&self, _: TestEnum)
fn InterfaceAttribute(&self) -> Root<Dom<Blob>>
fn SetInterfaceAttribute(&self, _: &Blob)
fn UnionAttribute(&self) -> HTMLElementOrLong
fn SetUnionAttribute(&self, _: HTMLElementOrLong)
fn Union2Attribute(&self) -> EventOrString
fn SetUnion2Attribute(&self, _: EventOrString)
fn Union3Attribute(&self) -> EventOrUSVString
fn SetUnion3Attribute(&self, _: EventOrUSVString)
fn Union4Attribute(&self) -> StringOrUnsignedLong
fn SetUnion4Attribute(&self, _: StringOrUnsignedLong)
fn Union5Attribute(&self) -> StringOrBoolean
fn SetUnion5Attribute(&self, _: StringOrBoolean)
fn Union6Attribute(&self) -> UnsignedLongOrBoolean
fn SetUnion6Attribute(&self, _: UnsignedLongOrBoolean)
fn Union7Attribute(&self) -> BlobOrBoolean
fn SetUnion7Attribute(&self, _: BlobOrBoolean)
fn Union8Attribute(&self) -> BlobOrUnsignedLong
fn SetUnion8Attribute(&self, _: BlobOrUnsignedLong)
fn Union9Attribute(&self) -> ByteStringOrLong
fn SetUnion9Attribute(&self, _: ByteStringOrLong)
fn ArrayAttribute(&self, cx: SafeJSContext) -> Uint8ClampedArray
fn AnyAttribute(&self, _: SafeJSContext) -> JSVal
fn SetAnyAttribute(&self, _: SafeJSContext, _: HandleValue<'_>)
fn ObjectAttribute(&self, cx: SafeJSContext) -> NonNull<JSObject>
fn SetObjectAttribute(&self, _: SafeJSContext, _: *mut JSObject)
fn GetBooleanAttributeNullable(&self) -> Option<bool>
fn SetBooleanAttributeNullable(&self, _: Option<bool>)
fn GetByteAttributeNullable(&self) -> Option<i8>
fn SetByteAttributeNullable(&self, _: Option<i8>)
fn GetOctetAttributeNullable(&self) -> Option<u8>
fn SetOctetAttributeNullable(&self, _: Option<u8>)
fn GetShortAttributeNullable(&self) -> Option<i16>
fn SetShortAttributeNullable(&self, _: Option<i16>)
fn GetUnsignedShortAttributeNullable(&self) -> Option<u16>
fn SetUnsignedShortAttributeNullable(&self, _: Option<u16>)
fn GetLongAttributeNullable(&self) -> Option<i32>
fn SetLongAttributeNullable(&self, _: Option<i32>)
fn GetUnsignedLongAttributeNullable(&self) -> Option<u32>
fn SetUnsignedLongAttributeNullable(&self, _: Option<u32>)
fn GetLongLongAttributeNullable(&self) -> Option<i64>
fn SetLongLongAttributeNullable(&self, _: Option<i64>)
fn GetUnsignedLongLongAttributeNullable(&self) -> Option<u64>
fn SetUnsignedLongLongAttributeNullable(&self, _: Option<u64>)
fn GetUnrestrictedFloatAttributeNullable(&self) -> Option<f32>
fn SetUnrestrictedFloatAttributeNullable(&self, _: Option<f32>)
fn GetFloatAttributeNullable(&self) -> Option<Finite<f32>>
fn SetFloatAttributeNullable(&self, _: Option<Finite<f32>>)
fn GetUnrestrictedDoubleAttributeNullable(&self) -> Option<f64>
fn SetUnrestrictedDoubleAttributeNullable(&self, _: Option<f64>)
fn GetDoubleAttributeNullable(&self) -> Option<Finite<f64>>
fn SetDoubleAttributeNullable(&self, _: Option<Finite<f64>>)
fn GetByteStringAttributeNullable(&self) -> Option<ByteString>
fn SetByteStringAttributeNullable(&self, _: Option<ByteString>)
fn GetStringAttributeNullable(&self) -> Option<DOMString>
fn SetStringAttributeNullable(&self, _: Option<DOMString>)
fn GetUsvstringAttributeNullable(&self) -> Option<USVString>
fn SetUsvstringAttributeNullable(&self, _: Option<USVString>)
fn SetBinaryRenamedAttribute(&self, _: DOMString)
fn ForwardedAttribute(&self) -> Root<Dom<TestBinding>>
fn BinaryRenamedAttribute(&self) -> DOMString
fn SetBinaryRenamedAttribute2(&self, _: DOMString)
fn BinaryRenamedAttribute2(&self) -> DOMString
fn Attr_to_automatically_rename(&self) -> DOMString
fn SetAttr_to_automatically_rename(&self, _: DOMString)
fn GetEnumAttributeNullable(&self) -> Option<TestEnum>
fn GetInterfaceAttributeNullable(&self) -> Option<Root<Dom<Blob>>>
fn SetInterfaceAttributeNullable(&self, _: Option<&Blob>)
fn GetInterfaceAttributeWeak(&self) -> Option<Root<Dom<URL>>>
fn SetInterfaceAttributeWeak(&self, url: Option<&URL>)
fn GetObjectAttributeNullable( &self, _: SafeJSContext, ) -> Option<NonNull<JSObject>>
fn SetObjectAttributeNullable(&self, _: SafeJSContext, _: *mut JSObject)
fn GetUnionAttributeNullable(&self) -> Option<HTMLElementOrLong>
fn SetUnionAttributeNullable(&self, _: Option<HTMLElementOrLong>)
fn GetUnion2AttributeNullable(&self) -> Option<EventOrString>
fn SetUnion2AttributeNullable(&self, _: Option<EventOrString>)
fn GetUnion3AttributeNullable(&self) -> Option<BlobOrBoolean>
fn SetUnion3AttributeNullable(&self, _: Option<BlobOrBoolean>)
fn GetUnion4AttributeNullable(&self) -> Option<UnsignedLongOrBoolean>
fn SetUnion4AttributeNullable(&self, _: Option<UnsignedLongOrBoolean>)
fn GetUnion5AttributeNullable(&self) -> Option<StringOrBoolean>
fn SetUnion5AttributeNullable(&self, _: Option<StringOrBoolean>)
fn GetUnion6AttributeNullable(&self) -> Option<ByteStringOrLong>
fn SetUnion6AttributeNullable(&self, _: Option<ByteStringOrLong>)
fn BinaryRenamedMethod(&self)
fn ReceiveVoid(&self)
fn ReceiveBoolean(&self) -> bool
fn ReceiveByte(&self) -> i8
fn ReceiveOctet(&self) -> u8
fn ReceiveShort(&self) -> i16
fn ReceiveUnsignedShort(&self) -> u16
fn ReceiveLong(&self) -> i32
fn ReceiveUnsignedLong(&self) -> u32
fn ReceiveLongLong(&self) -> i64
fn ReceiveUnsignedLongLong(&self) -> u64
fn ReceiveUnrestrictedFloat(&self) -> f32
fn ReceiveFloat(&self) -> Finite<f32>
fn ReceiveUnrestrictedDouble(&self) -> f64
fn ReceiveDouble(&self) -> Finite<f64>
fn ReceiveString(&self) -> DOMString
fn ReceiveUsvstring(&self) -> USVString
fn ReceiveByteString(&self) -> ByteString
fn ReceiveEnum(&self) -> TestEnum
fn ReceiveInterface(&self) -> Root<Dom<Blob>>
fn ReceiveAny(&self, _: SafeJSContext) -> JSVal
fn ReceiveObject(&self, cx: SafeJSContext) -> NonNull<JSObject>
fn ReceiveUnion(&self) -> HTMLElementOrLong
fn ReceiveUnion2(&self) -> EventOrString
fn ReceiveUnion3(&self) -> StringOrLongSequence
fn ReceiveUnion4(&self) -> StringOrStringSequence
fn ReceiveUnion5(&self) -> BlobOrBlobSequence
fn ReceiveUnion6(&self) -> StringOrUnsignedLong
fn ReceiveUnion7(&self) -> StringOrBoolean
fn ReceiveUnion8(&self) -> UnsignedLongOrBoolean
fn ReceiveUnion9(&self) -> HTMLElementOrUnsignedLongOrStringOrBoolean
fn ReceiveUnion10(&self) -> ByteStringOrLong
fn ReceiveUnion11(&self) -> ByteStringSequenceOrLongOrString
fn ReceiveSequence(&self) -> Vec<i32>
fn ReceiveInterfaceSequence(&self) -> Vec<Root<Dom<Blob>>>
fn ReceiveUnionIdentity( &self, _: SafeJSContext, arg: StringOrObject, ) -> StringOrObject
fn ReceiveNullableBoolean(&self) -> Option<bool>
fn ReceiveNullableByte(&self) -> Option<i8>
fn ReceiveNullableOctet(&self) -> Option<u8>
fn ReceiveNullableShort(&self) -> Option<i16>
fn ReceiveNullableUnsignedShort(&self) -> Option<u16>
fn ReceiveNullableLong(&self) -> Option<i32>
fn ReceiveNullableUnsignedLong(&self) -> Option<u32>
fn ReceiveNullableLongLong(&self) -> Option<i64>
fn ReceiveNullableUnsignedLongLong(&self) -> Option<u64>
fn ReceiveNullableUnrestrictedFloat(&self) -> Option<f32>
fn ReceiveNullableFloat(&self) -> Option<Finite<f32>>
fn ReceiveNullableUnrestrictedDouble(&self) -> Option<f64>
fn ReceiveNullableDouble(&self) -> Option<Finite<f64>>
fn ReceiveNullableString(&self) -> Option<DOMString>
fn ReceiveNullableUsvstring(&self) -> Option<USVString>
fn ReceiveNullableByteString(&self) -> Option<ByteString>
fn ReceiveNullableEnum(&self) -> Option<TestEnum>
fn ReceiveNullableInterface(&self) -> Option<Root<Dom<Blob>>>
fn ReceiveNullableObject(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>
fn ReceiveNullableUnion(&self) -> Option<HTMLElementOrLong>
fn ReceiveNullableUnion2(&self) -> Option<EventOrString>
fn ReceiveNullableUnion3(&self) -> Option<StringOrLongSequence>
fn ReceiveNullableUnion4(&self) -> Option<LongSequenceOrBoolean>
fn ReceiveNullableUnion5(&self) -> Option<UnsignedLongOrBoolean>
fn ReceiveNullableUnion6(&self) -> Option<ByteStringOrLong>
fn ReceiveNullableSequence(&self) -> Option<Vec<i32>>
fn ReceiveTestDictionaryWithSuccessOnKeyword( &self, ) -> RootedTraceableBox<TestDictionary>
fn DictMatchesPassedValues( &self, arg: RootedTraceableBox<TestDictionary>, ) -> bool
fn PassBoolean(&self, _: bool)
fn PassByte(&self, _: i8)
fn PassOctet(&self, _: u8)
fn PassShort(&self, _: i16)
fn PassUnsignedShort(&self, _: u16)
fn PassLong(&self, _: i32)
fn PassUnsignedLong(&self, _: u32)
fn PassLongLong(&self, _: i64)
fn PassUnsignedLongLong(&self, _: u64)
fn PassUnrestrictedFloat(&self, _: f32)
fn PassFloat(&self, _: Finite<f32>)
fn PassUnrestrictedDouble(&self, _: f64)
fn PassDouble(&self, _: Finite<f64>)
fn PassString(&self, _: DOMString)
fn PassUsvstring(&self, _: USVString)
fn PassByteString(&self, _: ByteString)
fn PassEnum(&self, _: TestEnum)
fn PassInterface(&self, _: &Blob)
fn PassTypedArray(&self, _: CustomAutoRooterGuard<'_, Int8Array>)
fn PassTypedArray2(&self, _: CustomAutoRooterGuard<'_, ArrayBuffer>)
fn PassTypedArray3(&self, _: CustomAutoRooterGuard<'_, ArrayBufferView>)
fn PassUnion(&self, _: HTMLElementOrLong)
fn PassUnion2(&self, _: EventOrString)
fn PassUnion3(&self, _: BlobOrString)
fn PassUnion4(&self, _: StringOrStringSequence)
fn PassUnion5(&self, _: StringOrBoolean)
fn PassUnion6(&self, _: UnsignedLongOrBoolean)
fn PassUnion7(&self, _: StringSequenceOrUnsignedLong)
fn PassUnion8(&self, _: ByteStringSequenceOrLong)
fn PassUnion9(&self, _: TestDictionaryOrLong)
fn PassUnion10(&self, _: SafeJSContext, _: StringOrObject)
fn PassUnion11(&self, _: ArrayBufferOrArrayBufferView)
fn PassUnionWithTypedef(&self, _: DocumentOrStringOrURLOrBlob)
fn PassUnionWithTypedef2(&self, _: LongSequenceOrStringOrURLOrBlob)
fn PassAny(&self, _: SafeJSContext, _: HandleValue<'_>)
fn PassObject(&self, _: SafeJSContext, _: *mut JSObject)
fn PassCallbackFunction(&self, _: Rc<Function>)
fn PassCallbackInterface(&self, _: Rc<EventListener>)
fn PassSequence(&self, _: Vec<i32>)
fn PassAnySequence( &self, _: SafeJSContext, _: CustomAutoRooterGuard<'_, Vec<JSVal>>, )
fn AnySequencePassthrough( &self, _: SafeJSContext, seq: CustomAutoRooterGuard<'_, Vec<JSVal>>, ) -> Vec<JSVal>
fn PassObjectSequence( &self, _: SafeJSContext, _: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>, )
fn PassStringSequence(&self, _: Vec<DOMString>)
fn PassInterfaceSequence(&self, _: Vec<Root<Dom<Blob>>>)
fn PassOverloaded(&self, _: CustomAutoRooterGuard<'_, ArrayBuffer>)
fn PassOverloaded_(&self, _: DOMString)
fn PassOverloadedDict(&self, _: &Node) -> DOMString
fn PassOverloadedDict_(&self, u: &TestURLLike) -> DOMString
fn PassNullableBoolean(&self, _: Option<bool>)
fn PassNullableByte(&self, _: Option<i8>)
fn PassNullableOctet(&self, _: Option<u8>)
fn PassNullableShort(&self, _: Option<i16>)
fn PassNullableUnsignedShort(&self, _: Option<u16>)
fn PassNullableLong(&self, _: Option<i32>)
fn PassNullableUnsignedLong(&self, _: Option<u32>)
fn PassNullableLongLong(&self, _: Option<i64>)
fn PassNullableUnsignedLongLong(&self, _: Option<u64>)
fn PassNullableUnrestrictedFloat(&self, _: Option<f32>)
fn PassNullableFloat(&self, _: Option<Finite<f32>>)
fn PassNullableUnrestrictedDouble(&self, _: Option<f64>)
fn PassNullableDouble(&self, _: Option<Finite<f64>>)
fn PassNullableString(&self, _: Option<DOMString>)
fn PassNullableUsvstring(&self, _: Option<USVString>)
fn PassNullableByteString(&self, _: Option<ByteString>)
fn PassNullableInterface(&self, _: Option<&Blob>)
fn PassNullableObject(&self, _: SafeJSContext, _: *mut JSObject)
fn PassNullableTypedArray( &self, _: CustomAutoRooterGuard<'_, Option<Int8Array>>, )
fn PassNullableUnion(&self, _: Option<HTMLElementOrLong>)
fn PassNullableUnion2(&self, _: Option<EventOrString>)
fn PassNullableUnion3(&self, _: Option<StringOrLongSequence>)
fn PassNullableUnion4(&self, _: Option<LongSequenceOrBoolean>)
fn PassNullableUnion5(&self, _: Option<UnsignedLongOrBoolean>)
fn PassNullableUnion6(&self, _: Option<ByteStringOrLong>)
fn PassNullableCallbackFunction(&self, _: Option<Rc<Function>>)
fn PassNullableCallbackInterface(&self, _: Option<Rc<EventListener>>)
fn PassNullableSequence(&self, _: Option<Vec<i32>>)
fn PassOptionalBoolean(&self, _: Option<bool>)
fn PassOptionalByte(&self, _: Option<i8>)
fn PassOptionalOctet(&self, _: Option<u8>)
fn PassOptionalShort(&self, _: Option<i16>)
fn PassOptionalUnsignedShort(&self, _: Option<u16>)
fn PassOptionalLong(&self, _: Option<i32>)
fn PassOptionalUnsignedLong(&self, _: Option<u32>)
fn PassOptionalLongLong(&self, _: Option<i64>)
fn PassOptionalUnsignedLongLong(&self, _: Option<u64>)
fn PassOptionalUnrestrictedFloat(&self, _: Option<f32>)
fn PassOptionalFloat(&self, _: Option<Finite<f32>>)
fn PassOptionalUnrestrictedDouble(&self, _: Option<f64>)
fn PassOptionalDouble(&self, _: Option<Finite<f64>>)
fn PassOptionalString(&self, _: Option<DOMString>)
fn PassOptionalUsvstring(&self, _: Option<USVString>)
fn PassOptionalByteString(&self, _: Option<ByteString>)
fn PassOptionalEnum(&self, _: Option<TestEnum>)
fn PassOptionalInterface(&self, _: Option<&Blob>)
fn PassOptionalUnion(&self, _: Option<HTMLElementOrLong>)
fn PassOptionalUnion2(&self, _: Option<EventOrString>)
fn PassOptionalUnion3(&self, _: Option<StringOrLongSequence>)
fn PassOptionalUnion4(&self, _: Option<LongSequenceOrBoolean>)
fn PassOptionalUnion5(&self, _: Option<UnsignedLongOrBoolean>)
fn PassOptionalUnion6(&self, _: Option<ByteStringOrLong>)
fn PassOptionalAny(&self, _: SafeJSContext, _: HandleValue<'_>)
fn PassOptionalObject(&self, _: SafeJSContext, _: Option<*mut JSObject>)
fn PassOptionalCallbackFunction(&self, _: Option<Rc<Function>>)
fn PassOptionalCallbackInterface(&self, _: Option<Rc<EventListener>>)
fn PassOptionalSequence(&self, _: Option<Vec<i32>>)
fn PassOptionalNullableBoolean(&self, _: Option<Option<bool>>)
fn PassOptionalNullableByte(&self, _: Option<Option<i8>>)
fn PassOptionalNullableOctet(&self, _: Option<Option<u8>>)
fn PassOptionalNullableShort(&self, _: Option<Option<i16>>)
fn PassOptionalNullableUnsignedShort(&self, _: Option<Option<u16>>)
fn PassOptionalNullableLong(&self, _: Option<Option<i32>>)
fn PassOptionalNullableUnsignedLong(&self, _: Option<Option<u32>>)
fn PassOptionalNullableLongLong(&self, _: Option<Option<i64>>)
fn PassOptionalNullableUnsignedLongLong(&self, _: Option<Option<u64>>)
fn PassOptionalNullableUnrestrictedFloat(&self, _: Option<Option<f32>>)
fn PassOptionalNullableFloat(&self, _: Option<Option<Finite<f32>>>)
fn PassOptionalNullableUnrestrictedDouble(&self, _: Option<Option<f64>>)
fn PassOptionalNullableDouble(&self, _: Option<Option<Finite<f64>>>)
fn PassOptionalNullableString(&self, _: Option<Option<DOMString>>)
fn PassOptionalNullableUsvstring(&self, _: Option<Option<USVString>>)
fn PassOptionalNullableByteString(&self, _: Option<Option<ByteString>>)
fn PassOptionalNullableInterface(&self, _: Option<Option<&Blob>>)
fn PassOptionalNullableObject(&self, _: SafeJSContext, _: Option<*mut JSObject>)
fn PassOptionalNullableUnion(&self, _: Option<Option<HTMLElementOrLong>>)
fn PassOptionalNullableUnion2(&self, _: Option<Option<EventOrString>>)
fn PassOptionalNullableUnion3(&self, _: Option<Option<StringOrLongSequence>>)
fn PassOptionalNullableUnion4(&self, _: Option<Option<LongSequenceOrBoolean>>)
fn PassOptionalNullableUnion5(&self, _: Option<Option<UnsignedLongOrBoolean>>)
fn PassOptionalNullableUnion6(&self, _: Option<Option<ByteStringOrLong>>)
fn PassOptionalNullableCallbackFunction(&self, _: Option<Option<Rc<Function>>>)
fn PassOptionalNullableCallbackInterface( &self, _: Option<Option<Rc<EventListener>>>, )
fn PassOptionalNullableSequence(&self, _: Option<Option<Vec<i32>>>)
fn PassOptionalBooleanWithDefault(&self, _: bool)
fn PassOptionalByteWithDefault(&self, _: i8)
fn PassOptionalOctetWithDefault(&self, _: u8)
fn PassOptionalShortWithDefault(&self, _: i16)
fn PassOptionalUnsignedShortWithDefault(&self, _: u16)
fn PassOptionalLongWithDefault(&self, _: i32)
fn PassOptionalUnsignedLongWithDefault(&self, _: u32)
fn PassOptionalLongLongWithDefault(&self, _: i64)
fn PassOptionalUnsignedLongLongWithDefault(&self, _: u64)
fn PassOptionalStringWithDefault(&self, _: DOMString)
fn PassOptionalUsvstringWithDefault(&self, _: USVString)
fn PassOptionalBytestringWithDefault(&self, _: ByteString)
fn PassOptionalEnumWithDefault(&self, _: TestEnum)
fn PassOptionalSequenceWithDefault(&self, _: Vec<i32>)
fn PassOptionalNullableBooleanWithDefault(&self, _: Option<bool>)
fn PassOptionalNullableByteWithDefault(&self, _: Option<i8>)
fn PassOptionalNullableOctetWithDefault(&self, _: Option<u8>)
fn PassOptionalNullableShortWithDefault(&self, _: Option<i16>)
fn PassOptionalNullableUnsignedShortWithDefault(&self, _: Option<u16>)
fn PassOptionalNullableLongWithDefault(&self, _: Option<i32>)
fn PassOptionalNullableUnsignedLongWithDefault(&self, _: Option<u32>)
fn PassOptionalNullableLongLongWithDefault(&self, _: Option<i64>)
fn PassOptionalNullableUnsignedLongLongWithDefault(&self, _: Option<u64>)
fn PassOptionalNullableStringWithDefault(&self, _: Option<DOMString>)
fn PassOptionalNullableUsvstringWithDefault(&self, _: Option<USVString>)
fn PassOptionalNullableByteStringWithDefault(&self, _: Option<ByteString>)
fn PassOptionalNullableInterfaceWithDefault(&self, _: Option<&Blob>)
fn PassOptionalNullableObjectWithDefault( &self, _: SafeJSContext, _: *mut JSObject, )
fn PassOptionalNullableUnionWithDefault(&self, _: Option<HTMLElementOrLong>)
fn PassOptionalNullableUnion2WithDefault(&self, _: Option<EventOrString>)
fn PassOptionalNullableCallbackInterfaceWithDefault( &self, _: Option<Rc<EventListener>>, )
fn PassOptionalAnyWithDefault(&self, _: SafeJSContext, _: HandleValue<'_>)
fn PassOptionalNullableBooleanWithNonNullDefault(&self, _: Option<bool>)
fn PassOptionalNullableByteWithNonNullDefault(&self, _: Option<i8>)
fn PassOptionalNullableOctetWithNonNullDefault(&self, _: Option<u8>)
fn PassOptionalNullableShortWithNonNullDefault(&self, _: Option<i16>)
fn PassOptionalNullableUnsignedShortWithNonNullDefault(&self, _: Option<u16>)
fn PassOptionalNullableLongWithNonNullDefault(&self, _: Option<i32>)
fn PassOptionalNullableUnsignedLongWithNonNullDefault(&self, _: Option<u32>)
fn PassOptionalNullableLongLongWithNonNullDefault(&self, _: Option<i64>)
fn PassOptionalNullableUnsignedLongLongWithNonNullDefault(&self, _: Option<u64>)
fn PassOptionalNullableStringWithNonNullDefault(&self, _: Option<DOMString>)
fn PassOptionalNullableUsvstringWithNonNullDefault(&self, _: Option<USVString>)
fn PassOptionalOverloaded( &self, a: &TestBinding, _: u32, _: u32, ) -> Root<Dom<TestBinding>>
fn PassOptionalOverloaded_(&self, _: &Blob, _: u32)
fn PassVariadicBoolean(&self, _: Vec<bool>)
fn PassVariadicBooleanAndDefault(&self, _: bool, _: Vec<bool>)
fn PassVariadicByte(&self, _: Vec<i8>)
fn PassVariadicOctet(&self, _: Vec<u8>)
fn PassVariadicShort(&self, _: Vec<i16>)
fn PassVariadicUnsignedShort(&self, _: Vec<u16>)
fn PassVariadicLong(&self, _: Vec<i32>)
fn PassVariadicUnsignedLong(&self, _: Vec<u32>)
fn PassVariadicLongLong(&self, _: Vec<i64>)
fn PassVariadicUnsignedLongLong(&self, _: Vec<u64>)
fn PassVariadicUnrestrictedFloat(&self, _: Vec<f32>)
fn PassVariadicFloat(&self, _: Vec<Finite<f32>>)
fn PassVariadicUnrestrictedDouble(&self, _: Vec<f64>)
fn PassVariadicDouble(&self, _: Vec<Finite<f64>>)
fn PassVariadicString(&self, _: Vec<DOMString>)
fn PassVariadicUsvstring(&self, _: Vec<USVString>)
fn PassVariadicByteString(&self, _: Vec<ByteString>)
fn PassVariadicEnum(&self, _: Vec<TestEnum>)
fn PassVariadicInterface(&self, _: &[&Blob])
fn PassVariadicUnion(&self, _: Vec<HTMLElementOrLong>)
fn PassVariadicUnion2(&self, _: Vec<EventOrString>)
fn PassVariadicUnion3(&self, _: Vec<BlobOrString>)
fn PassVariadicUnion4(&self, _: Vec<BlobOrBoolean>)
fn PassVariadicUnion5(&self, _: Vec<StringOrUnsignedLong>)
fn PassVariadicUnion6(&self, _: Vec<UnsignedLongOrBoolean>)
fn PassVariadicUnion7(&self, _: Vec<ByteStringOrLong>)
fn PassVariadicAny(&self, _: SafeJSContext, _: Vec<HandleValue<'_>>)
fn PassVariadicObject(&self, _: SafeJSContext, _: Vec<*mut JSObject>)
fn BooleanMozPreference(&self, pref_name: DOMString) -> bool
fn StringMozPreference(&self, pref_name: DOMString) -> DOMString
fn PrefControlledAttributeDisabled(&self) -> bool
fn PrefControlledAttributeEnabled(&self) -> bool
fn PrefControlledMethodDisabled(&self)
fn PrefControlledMethodEnabled(&self)
fn FuncControlledAttributeDisabled(&self) -> bool
fn FuncControlledAttributeEnabled(&self) -> bool
fn FuncControlledMethodDisabled(&self)
fn FuncControlledMethodEnabled(&self)
fn PassRecord(&self, _: Record<DOMString, i32>)
fn PassRecordWithUSVStringKey(&self, _: Record<USVString, i32>)
fn PassRecordWithByteStringKey(&self, _: Record<ByteString, i32>)
fn PassNullableRecord(&self, _: Option<Record<DOMString, i32>>)
fn PassRecordOfNullableInts(&self, _: Record<DOMString, Option<i32>>)
fn PassOptionalRecordOfNullableInts( &self, _: Option<Record<DOMString, Option<i32>>>, )
fn PassOptionalNullableRecordOfNullableInts( &self, _: Option<Option<Record<DOMString, Option<i32>>>>, )
fn PassCastableObjectRecord(&self, _: Record<DOMString, Root<Dom<TestBinding>>>)
fn PassNullableCastableObjectRecord( &self, _: Record<DOMString, Option<Root<Dom<TestBinding>>>>, )
fn PassCastableObjectNullableRecord( &self, _: Option<Record<DOMString, Root<Dom<TestBinding>>>>, )
fn PassNullableCastableObjectNullableRecord( &self, _: Option<Record<DOMString, Option<Root<Dom<TestBinding>>>>>, )
fn PassOptionalRecord(&self, _: Option<Record<DOMString, i32>>)
fn PassOptionalNullableRecord(&self, _: Option<Option<Record<DOMString, i32>>>)
fn PassOptionalNullableRecordWithDefaultValue( &self, _: Option<Record<DOMString, i32>>, )
fn PassOptionalObjectRecord( &self, _: Option<Record<DOMString, Root<Dom<TestBinding>>>>, )
fn PassStringRecord(&self, _: Record<DOMString, DOMString>)
fn PassByteStringRecord(&self, _: Record<DOMString, ByteString>)
fn PassRecordOfRecords(&self, _: Record<DOMString, Record<DOMString, i32>>)
fn PassRecordUnion(&self, _: LongOrStringByteStringRecord)
fn PassRecordUnion2(&self, _: TestBindingOrStringByteStringRecord)
fn PassRecordUnion3( &self, _: TestBindingOrByteStringSequenceSequenceOrStringByteStringRecord, )
fn ReceiveRecord(&self) -> Record<DOMString, i32>
fn ReceiveRecordWithUSVStringKey(&self) -> Record<USVString, i32>
fn ReceiveRecordWithByteStringKey(&self) -> Record<ByteString, i32>
fn ReceiveNullableRecord(&self) -> Option<Record<DOMString, i32>>
fn ReceiveRecordOfNullableInts(&self) -> Record<DOMString, Option<i32>>
fn ReceiveNullableRecordOfNullableInts( &self, ) -> Option<Record<DOMString, Option<i32>>>
fn ReceiveRecordOfRecords(&self) -> Record<DOMString, Record<DOMString, i32>>
fn ReceiveAnyRecord(&self) -> Record<DOMString, JSVal>
fn ReturnResolvedPromise( &self, cx: SafeJSContext, v: HandleValue<'_>, ) -> Result<Rc<Promise>, Error>
fn ReturnRejectedPromise( &self, cx: SafeJSContext, v: HandleValue<'_>, ) -> Result<Rc<Promise>, Error>
fn PromiseResolveNative( &self, cx: SafeJSContext, p: &Promise, v: HandleValue<'_>, )
fn PromiseRejectNative( &self, cx: SafeJSContext, p: &Promise, v: HandleValue<'_>, )
fn PromiseRejectWithTypeError(&self, p: &Promise, s: USVString)
fn ResolvePromiseDelayed(&self, p: &Promise, value: DOMString, delay: u64)
fn PromiseNativeHandler( &self, resolve: Option<Rc<SimpleCallback>>, reject: Option<Rc<SimpleCallback>>, comp: InRealm<'_>, ) -> Rc<Promise>
fn PromiseAttribute(&self, comp: InRealm<'_>) -> Rc<Promise>
fn AcceptPromise(&self, _promise: &Promise)
fn PassSequenceSequence(&self, _seq: Vec<Vec<i32>>)
fn ReturnSequenceSequence(&self) -> Vec<Vec<i32>>
fn PassUnionSequenceSequence(&self, seq: LongOrLongSequenceSequence)
fn CrashHard(&self)
fn AdvanceClock(&self, ms: i32)
fn Panic(&self)
fn EntryGlobal(&self) -> Root<Dom<GlobalScope>>
fn IncumbentGlobal(&self) -> Root<Dom<GlobalScope>>
fn SemiExposedBoolFromInterface(&self) -> bool
fn BoolFromSemiExposedPartialInterface(&self) -> bool
fn SemiExposedBoolFromPartialInterface(&self) -> bool
fn GetDictionaryWithParent( &self, s1: DOMString, s2: DOMString, ) -> TestDictionaryWithParent
fn MethodThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>
fn GetGetterThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>
fn MethodInternalThrowToRejectPromise(&self, _arg: u64) -> Rc<Promise>
source§impl ToJSValConvertible for TestBinding
impl ToJSValConvertible for TestBinding
source§impl Traceable for TestBinding
impl Traceable for TestBinding
impl DerivedFrom<TestBinding> for TestBinding
impl DerivedFrom<TestBinding> for TestBindingProxy
impl Eq for TestBinding
Auto Trait Implementations§
impl !Freeze for TestBinding
impl !RefUnwindSafe for TestBinding
impl !Send for TestBinding
impl !Sync for TestBinding
impl Unpin for TestBinding
impl !UnwindSafe for TestBinding
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert