Trait script::dom::bindings::codegen::Bindings::TestBindingBinding::TestBinding_Binding::TestBindingMethods
source · pub trait TestBindingMethods {
Show 465 methods
// Required methods
fn BooleanAttribute(&self) -> bool;
fn SetBooleanAttribute(&self, value: bool);
fn ByteAttribute(&self) -> i8;
fn SetByteAttribute(&self, value: i8);
fn OctetAttribute(&self) -> u8;
fn SetOctetAttribute(&self, value: u8);
fn ShortAttribute(&self) -> i16;
fn SetShortAttribute(&self, value: i16);
fn UnsignedShortAttribute(&self) -> u16;
fn SetUnsignedShortAttribute(&self, value: u16);
fn LongAttribute(&self) -> i32;
fn SetLongAttribute(&self, value: i32);
fn UnsignedLongAttribute(&self) -> u32;
fn SetUnsignedLongAttribute(&self, value: u32);
fn LongLongAttribute(&self) -> i64;
fn SetLongLongAttribute(&self, value: i64);
fn UnsignedLongLongAttribute(&self) -> u64;
fn SetUnsignedLongLongAttribute(&self, value: u64);
fn UnrestrictedFloatAttribute(&self) -> f32;
fn SetUnrestrictedFloatAttribute(&self, value: f32);
fn FloatAttribute(&self) -> Finite<f32>;
fn SetFloatAttribute(&self, value: Finite<f32>);
fn UnrestrictedDoubleAttribute(&self) -> f64;
fn SetUnrestrictedDoubleAttribute(&self, value: f64);
fn DoubleAttribute(&self) -> Finite<f64>;
fn SetDoubleAttribute(&self, value: Finite<f64>);
fn StringAttribute(&self) -> DOMString;
fn SetStringAttribute(&self, value: DOMString);
fn UsvstringAttribute(&self) -> USVString;
fn SetUsvstringAttribute(&self, value: USVString);
fn ByteStringAttribute(&self) -> ByteString;
fn SetByteStringAttribute(&self, value: ByteString);
fn EnumAttribute(&self) -> TestEnum;
fn SetEnumAttribute(&self, value: TestEnum);
fn InterfaceAttribute(&self, _can_gc: CanGc) -> Root<Dom<Blob>>;
fn SetInterfaceAttribute(&self, value: &Blob);
fn UnionAttribute(&self) -> HTMLElementOrLong;
fn SetUnionAttribute(&self, value: HTMLElementOrLong);
fn Union2Attribute(&self) -> EventOrString;
fn SetUnion2Attribute(&self, value: EventOrString);
fn Union3Attribute(&self) -> EventOrUSVString;
fn SetUnion3Attribute(&self, value: EventOrUSVString);
fn Union4Attribute(&self) -> StringOrUnsignedLong;
fn SetUnion4Attribute(&self, value: StringOrUnsignedLong);
fn Union5Attribute(&self) -> StringOrBoolean;
fn SetUnion5Attribute(&self, value: StringOrBoolean);
fn Union6Attribute(&self) -> UnsignedLongOrBoolean;
fn SetUnion6Attribute(&self, value: UnsignedLongOrBoolean);
fn Union7Attribute(&self) -> BlobOrBoolean;
fn SetUnion7Attribute(&self, value: BlobOrBoolean);
fn Union8Attribute(&self) -> BlobOrUnsignedLong;
fn SetUnion8Attribute(&self, value: BlobOrUnsignedLong);
fn Union9Attribute(&self) -> ByteStringOrLong;
fn SetUnion9Attribute(&self, value: ByteStringOrLong);
fn ArrayAttribute(&self, cx: SafeJSContext) -> Uint8ClampedArray;
fn AnyAttribute(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn SetAnyAttribute(&self, cx: SafeJSContext, value: HandleValue<'_>);
fn ObjectAttribute(&self, cx: SafeJSContext) -> NonNull<JSObject>;
fn SetObjectAttribute(&self, cx: SafeJSContext, value: *mut JSObject);
fn GetBooleanAttributeNullable(&self) -> Option<bool>;
fn SetBooleanAttributeNullable(&self, value: Option<bool>);
fn GetByteAttributeNullable(&self) -> Option<i8>;
fn SetByteAttributeNullable(&self, value: Option<i8>);
fn GetOctetAttributeNullable(&self) -> Option<u8>;
fn SetOctetAttributeNullable(&self, value: Option<u8>);
fn GetShortAttributeNullable(&self) -> Option<i16>;
fn SetShortAttributeNullable(&self, value: Option<i16>);
fn GetUnsignedShortAttributeNullable(&self) -> Option<u16>;
fn SetUnsignedShortAttributeNullable(&self, value: Option<u16>);
fn GetLongAttributeNullable(&self) -> Option<i32>;
fn SetLongAttributeNullable(&self, value: Option<i32>);
fn GetUnsignedLongAttributeNullable(&self) -> Option<u32>;
fn SetUnsignedLongAttributeNullable(&self, value: Option<u32>);
fn GetLongLongAttributeNullable(&self) -> Option<i64>;
fn SetLongLongAttributeNullable(&self, value: Option<i64>);
fn GetUnsignedLongLongAttributeNullable(&self) -> Option<u64>;
fn SetUnsignedLongLongAttributeNullable(&self, value: Option<u64>);
fn GetUnrestrictedFloatAttributeNullable(&self) -> Option<f32>;
fn SetUnrestrictedFloatAttributeNullable(&self, value: Option<f32>);
fn GetFloatAttributeNullable(&self) -> Option<Finite<f32>>;
fn SetFloatAttributeNullable(&self, value: Option<Finite<f32>>);
fn GetUnrestrictedDoubleAttributeNullable(&self) -> Option<f64>;
fn SetUnrestrictedDoubleAttributeNullable(&self, value: Option<f64>);
fn GetDoubleAttributeNullable(&self) -> Option<Finite<f64>>;
fn SetDoubleAttributeNullable(&self, value: Option<Finite<f64>>);
fn GetStringAttributeNullable(&self) -> Option<DOMString>;
fn SetStringAttributeNullable(&self, value: Option<DOMString>);
fn GetUsvstringAttributeNullable(&self) -> Option<USVString>;
fn SetUsvstringAttributeNullable(&self, value: Option<USVString>);
fn GetByteStringAttributeNullable(&self) -> Option<ByteString>;
fn SetByteStringAttributeNullable(&self, value: Option<ByteString>);
fn GetEnumAttributeNullable(&self) -> Option<TestEnum>;
fn GetInterfaceAttributeNullable(
&self,
_can_gc: CanGc,
) -> Option<Root<Dom<Blob>>>;
fn SetInterfaceAttributeNullable(&self, value: Option<&Blob>);
fn GetInterfaceAttributeWeak(&self) -> Option<Root<Dom<URL>>>;
fn SetInterfaceAttributeWeak(&self, value: Option<&URL>);
fn GetObjectAttributeNullable(
&self,
cx: SafeJSContext,
) -> Option<NonNull<JSObject>>;
fn SetObjectAttributeNullable(
&self,
cx: SafeJSContext,
value: *mut JSObject,
);
fn GetUnionAttributeNullable(&self) -> Option<HTMLElementOrLong>;
fn SetUnionAttributeNullable(&self, value: Option<HTMLElementOrLong>);
fn GetUnion2AttributeNullable(&self) -> Option<EventOrString>;
fn SetUnion2AttributeNullable(&self, value: Option<EventOrString>);
fn GetUnion3AttributeNullable(&self) -> Option<BlobOrBoolean>;
fn SetUnion3AttributeNullable(&self, value: Option<BlobOrBoolean>);
fn GetUnion4AttributeNullable(&self) -> Option<UnsignedLongOrBoolean>;
fn SetUnion4AttributeNullable(&self, value: Option<UnsignedLongOrBoolean>);
fn GetUnion5AttributeNullable(&self) -> Option<StringOrBoolean>;
fn SetUnion5AttributeNullable(&self, value: Option<StringOrBoolean>);
fn GetUnion6AttributeNullable(&self) -> Option<ByteStringOrLong>;
fn SetUnion6AttributeNullable(&self, value: Option<ByteStringOrLong>);
fn BinaryRenamedAttribute(&self) -> DOMString;
fn SetBinaryRenamedAttribute(&self, value: DOMString);
fn BinaryRenamedAttribute2(&self) -> DOMString;
fn SetBinaryRenamedAttribute2(&self, value: DOMString);
fn Attr_to_automatically_rename(&self) -> DOMString;
fn SetAttr_to_automatically_rename(&self, value: DOMString);
fn ForwardedAttribute(&self) -> Root<Dom<TestBinding>>;
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, _can_gc: CanGc) -> Root<Dom<Blob>>;
fn ReceiveAny(&self, cx: SafeJSContext, rval: MutableHandleValue<'_>);
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, _can_gc: CanGc) -> Vec<Root<Dom<Blob>>>;
fn ReceiveNullableByte(&self) -> Option<i8>;
fn ReceiveNullableBoolean(&self) -> Option<bool>;
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,
_can_gc: CanGc,
) -> 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 ReceiveUnionIdentity(
&self,
cx: SafeJSContext,
arg: StringOrObject,
) -> StringOrObject;
fn PassBoolean(&self, arg: bool);
fn PassByte(&self, arg: i8);
fn PassOctet(&self, arg: u8);
fn PassShort(&self, arg: i16);
fn PassUnsignedShort(&self, arg: u16);
fn PassLong(&self, arg: i32);
fn PassUnsignedLong(&self, arg: u32);
fn PassLongLong(&self, arg: i64);
fn PassUnsignedLongLong(&self, arg: u64);
fn PassUnrestrictedFloat(&self, arg: f32);
fn PassFloat(&self, arg: Finite<f32>);
fn PassUnrestrictedDouble(&self, arg: f64);
fn PassDouble(&self, arg: Finite<f64>);
fn PassString(&self, arg: DOMString);
fn PassUsvstring(&self, arg: USVString);
fn PassByteString(&self, arg: ByteString);
fn PassEnum(&self, arg: TestEnum);
fn PassInterface(&self, arg: &Blob);
fn PassTypedArray(&self, arg: CustomAutoRooterGuard<'_, Int8Array>);
fn PassTypedArray2(&self, arg: CustomAutoRooterGuard<'_, ArrayBuffer>);
fn PassTypedArray3(&self, arg: CustomAutoRooterGuard<'_, ArrayBufferView>);
fn PassUnion(&self, arg: HTMLElementOrLong);
fn PassUnion2(&self, data: EventOrString);
fn PassUnion3(&self, data: BlobOrString);
fn PassUnion4(&self, seq: StringOrStringSequence);
fn PassUnion5(&self, data: StringOrBoolean);
fn PassUnion6(&self, bool: UnsignedLongOrBoolean);
fn PassUnion7(&self, arg: StringSequenceOrUnsignedLong);
fn PassUnion8(&self, arg: ByteStringSequenceOrLong);
fn PassUnion9(&self, arg: TestDictionaryOrLong);
fn PassUnion10(&self, cx: SafeJSContext, arg: StringOrObject);
fn PassUnion11(&self, arg: ArrayBufferOrArrayBufferView);
fn PassUnionWithTypedef(&self, arg: DocumentOrStringOrURLOrBlob);
fn PassUnionWithTypedef2(&self, arg: LongSequenceOrStringOrURLOrBlob);
fn PassAny(&self, cx: SafeJSContext, arg: HandleValue<'_>);
fn PassObject(&self, cx: SafeJSContext, arg: *mut JSObject);
fn PassCallbackFunction(&self, fun: Rc<Function>);
fn PassCallbackInterface(&self, listener: Rc<EventListener>);
fn PassSequence(&self, seq: Vec<i32>);
fn PassAnySequence(
&self,
cx: SafeJSContext,
seq: CustomAutoRooterGuard<'_, Vec<JSVal>>,
);
fn AnySequencePassthrough(
&self,
cx: SafeJSContext,
seq: CustomAutoRooterGuard<'_, Vec<JSVal>>,
) -> Vec<JSVal>;
fn PassObjectSequence(
&self,
cx: SafeJSContext,
seq: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>,
);
fn PassStringSequence(&self, seq: Vec<DOMString>);
fn PassInterfaceSequence(&self, seq: Vec<Root<Dom<Blob>>>);
fn PassOverloaded(&self, arg: CustomAutoRooterGuard<'_, ArrayBuffer>);
fn PassOverloaded_(&self, arg: DOMString);
fn PassOverloadedDict(&self, arg: &Node) -> DOMString;
fn PassOverloadedDict_(&self, arg: &TestURLLike) -> DOMString;
fn PassNullableBoolean(&self, arg: Option<bool>);
fn PassNullableByte(&self, arg: Option<i8>);
fn PassNullableOctet(&self, arg: Option<u8>);
fn PassNullableShort(&self, arg: Option<i16>);
fn PassNullableUnsignedShort(&self, arg: Option<u16>);
fn PassNullableLong(&self, arg: Option<i32>);
fn PassNullableUnsignedLong(&self, arg: Option<u32>);
fn PassNullableLongLong(&self, arg: Option<i64>);
fn PassNullableUnsignedLongLong(&self, arg: Option<u64>);
fn PassNullableUnrestrictedFloat(&self, arg: Option<f32>);
fn PassNullableFloat(&self, arg: Option<Finite<f32>>);
fn PassNullableUnrestrictedDouble(&self, arg: Option<f64>);
fn PassNullableDouble(&self, arg: Option<Finite<f64>>);
fn PassNullableString(&self, arg: Option<DOMString>);
fn PassNullableUsvstring(&self, arg: Option<USVString>);
fn PassNullableByteString(&self, arg: Option<ByteString>);
fn PassNullableInterface(&self, arg: Option<&Blob>);
fn PassNullableObject(&self, cx: SafeJSContext, arg: *mut JSObject);
fn PassNullableTypedArray(
&self,
arg: CustomAutoRooterGuard<'_, Option<Int8Array>>,
);
fn PassNullableUnion(&self, arg: Option<HTMLElementOrLong>);
fn PassNullableUnion2(&self, data: Option<EventOrString>);
fn PassNullableUnion3(&self, data: Option<StringOrLongSequence>);
fn PassNullableUnion4(&self, bool: Option<LongSequenceOrBoolean>);
fn PassNullableUnion5(&self, arg: Option<UnsignedLongOrBoolean>);
fn PassNullableUnion6(&self, arg: Option<ByteStringOrLong>);
fn PassNullableCallbackFunction(&self, fun: Option<Rc<Function>>);
fn PassNullableCallbackInterface(&self, listener: Option<Rc<EventListener>>);
fn PassNullableSequence(&self, seq: Option<Vec<i32>>);
fn PassOptionalBoolean(&self, arg: Option<bool>);
fn PassOptionalByte(&self, arg: Option<i8>);
fn PassOptionalOctet(&self, arg: Option<u8>);
fn PassOptionalShort(&self, arg: Option<i16>);
fn PassOptionalUnsignedShort(&self, arg: Option<u16>);
fn PassOptionalLong(&self, arg: Option<i32>);
fn PassOptionalUnsignedLong(&self, arg: Option<u32>);
fn PassOptionalLongLong(&self, arg: Option<i64>);
fn PassOptionalUnsignedLongLong(&self, arg: Option<u64>);
fn PassOptionalUnrestrictedFloat(&self, arg: Option<f32>);
fn PassOptionalFloat(&self, arg: Option<Finite<f32>>);
fn PassOptionalUnrestrictedDouble(&self, arg: Option<f64>);
fn PassOptionalDouble(&self, arg: Option<Finite<f64>>);
fn PassOptionalString(&self, arg: Option<DOMString>);
fn PassOptionalUsvstring(&self, arg: Option<USVString>);
fn PassOptionalByteString(&self, arg: Option<ByteString>);
fn PassOptionalEnum(&self, arg: Option<TestEnum>);
fn PassOptionalInterface(&self, arg: Option<&Blob>);
fn PassOptionalUnion(&self, arg: Option<HTMLElementOrLong>);
fn PassOptionalUnion2(&self, data: Option<EventOrString>);
fn PassOptionalUnion3(&self, arg: Option<StringOrLongSequence>);
fn PassOptionalUnion4(&self, data: Option<LongSequenceOrBoolean>);
fn PassOptionalUnion5(&self, bool: Option<UnsignedLongOrBoolean>);
fn PassOptionalUnion6(&self, arg: Option<ByteStringOrLong>);
fn PassOptionalAny(&self, cx: SafeJSContext, arg: HandleValue<'_>);
fn PassOptionalObject(&self, cx: SafeJSContext, arg: Option<*mut JSObject>);
fn PassOptionalCallbackFunction(&self, fun: Option<Rc<Function>>);
fn PassOptionalCallbackInterface(&self, listener: Option<Rc<EventListener>>);
fn PassOptionalSequence(&self, seq: Option<Vec<i32>>);
fn PassOptionalNullableBoolean(&self, arg: Option<Option<bool>>);
fn PassOptionalNullableByte(&self, arg: Option<Option<i8>>);
fn PassOptionalNullableOctet(&self, arg: Option<Option<u8>>);
fn PassOptionalNullableShort(&self, arg: Option<Option<i16>>);
fn PassOptionalNullableUnsignedShort(&self, arg: Option<Option<u16>>);
fn PassOptionalNullableLong(&self, arg: Option<Option<i32>>);
fn PassOptionalNullableUnsignedLong(&self, arg: Option<Option<u32>>);
fn PassOptionalNullableLongLong(&self, arg: Option<Option<i64>>);
fn PassOptionalNullableUnsignedLongLong(&self, arg: Option<Option<u64>>);
fn PassOptionalNullableUnrestrictedFloat(&self, arg: Option<Option<f32>>);
fn PassOptionalNullableFloat(&self, arg: Option<Option<Finite<f32>>>);
fn PassOptionalNullableUnrestrictedDouble(&self, arg: Option<Option<f64>>);
fn PassOptionalNullableDouble(&self, arg: Option<Option<Finite<f64>>>);
fn PassOptionalNullableString(&self, arg: Option<Option<DOMString>>);
fn PassOptionalNullableUsvstring(&self, arg: Option<Option<USVString>>);
fn PassOptionalNullableByteString(&self, arg: Option<Option<ByteString>>);
fn PassOptionalNullableInterface(&self, arg: Option<Option<&Blob>>);
fn PassOptionalNullableObject(
&self,
cx: SafeJSContext,
arg: Option<*mut JSObject>,
);
fn PassOptionalNullableUnion(&self, arg: Option<Option<HTMLElementOrLong>>);
fn PassOptionalNullableUnion2(&self, data: Option<Option<EventOrString>>);
fn PassOptionalNullableUnion3(
&self,
arg: Option<Option<StringOrLongSequence>>,
);
fn PassOptionalNullableUnion4(
&self,
data: Option<Option<LongSequenceOrBoolean>>,
);
fn PassOptionalNullableUnion5(
&self,
bool: Option<Option<UnsignedLongOrBoolean>>,
);
fn PassOptionalNullableUnion6(&self, arg: Option<Option<ByteStringOrLong>>);
fn PassOptionalNullableCallbackFunction(
&self,
fun: Option<Option<Rc<Function>>>,
);
fn PassOptionalNullableCallbackInterface(
&self,
listener: Option<Option<Rc<EventListener>>>,
);
fn PassOptionalNullableSequence(&self, seq: Option<Option<Vec<i32>>>);
fn PassOptionalBooleanWithDefault(&self, arg: bool);
fn PassOptionalByteWithDefault(&self, arg: i8);
fn PassOptionalOctetWithDefault(&self, arg: u8);
fn PassOptionalShortWithDefault(&self, arg: i16);
fn PassOptionalUnsignedShortWithDefault(&self, arg: u16);
fn PassOptionalLongWithDefault(&self, arg: i32);
fn PassOptionalUnsignedLongWithDefault(&self, arg: u32);
fn PassOptionalLongLongWithDefault(&self, arg: i64);
fn PassOptionalUnsignedLongLongWithDefault(&self, arg: u64);
fn PassOptionalBytestringWithDefault(&self, arg: ByteString);
fn PassOptionalStringWithDefault(&self, arg: DOMString);
fn PassOptionalUsvstringWithDefault(&self, arg: USVString);
fn PassOptionalEnumWithDefault(&self, arg: TestEnum);
fn PassOptionalSequenceWithDefault(&self, seq: Vec<i32>);
fn PassOptionalNullableBooleanWithDefault(&self, arg: Option<bool>);
fn PassOptionalNullableByteWithDefault(&self, arg: Option<i8>);
fn PassOptionalNullableOctetWithDefault(&self, arg: Option<u8>);
fn PassOptionalNullableShortWithDefault(&self, arg: Option<i16>);
fn PassOptionalNullableUnsignedShortWithDefault(&self, arg: Option<u16>);
fn PassOptionalNullableLongWithDefault(&self, arg: Option<i32>);
fn PassOptionalNullableUnsignedLongWithDefault(&self, arg: Option<u32>);
fn PassOptionalNullableLongLongWithDefault(&self, arg: Option<i64>);
fn PassOptionalNullableUnsignedLongLongWithDefault(&self, arg: Option<u64>);
fn PassOptionalNullableStringWithDefault(&self, arg: Option<DOMString>);
fn PassOptionalNullableUsvstringWithDefault(&self, arg: Option<USVString>);
fn PassOptionalNullableByteStringWithDefault(&self, arg: Option<ByteString>);
fn PassOptionalNullableInterfaceWithDefault(&self, arg: Option<&Blob>);
fn PassOptionalNullableObjectWithDefault(
&self,
cx: SafeJSContext,
arg: *mut JSObject,
);
fn PassOptionalNullableUnionWithDefault(
&self,
arg: Option<HTMLElementOrLong>,
);
fn PassOptionalNullableUnion2WithDefault(&self, data: Option<EventOrString>);
fn PassOptionalNullableCallbackInterfaceWithDefault(
&self,
listener: Option<Rc<EventListener>>,
);
fn PassOptionalAnyWithDefault(
&self,
cx: SafeJSContext,
arg: HandleValue<'_>,
);
fn PassOptionalNullableBooleanWithNonNullDefault(&self, arg: Option<bool>);
fn PassOptionalNullableByteWithNonNullDefault(&self, arg: Option<i8>);
fn PassOptionalNullableOctetWithNonNullDefault(&self, arg: Option<u8>);
fn PassOptionalNullableShortWithNonNullDefault(&self, arg: Option<i16>);
fn PassOptionalNullableUnsignedShortWithNonNullDefault(
&self,
arg: Option<u16>,
);
fn PassOptionalNullableLongWithNonNullDefault(&self, arg: Option<i32>);
fn PassOptionalNullableUnsignedLongWithNonNullDefault(
&self,
arg: Option<u32>,
);
fn PassOptionalNullableLongLongWithNonNullDefault(&self, arg: Option<i64>);
fn PassOptionalNullableUnsignedLongLongWithNonNullDefault(
&self,
arg: Option<u64>,
);
fn PassOptionalNullableStringWithNonNullDefault(
&self,
arg: Option<DOMString>,
);
fn PassOptionalNullableUsvstringWithNonNullDefault(
&self,
arg: Option<USVString>,
);
fn PassOptionalOverloaded(
&self,
arg0: &TestBinding,
arg1: u32,
arg2: u32,
) -> Root<Dom<TestBinding>>;
fn PassOptionalOverloaded_(&self, arg0: &Blob, arg1: u32);
fn PassVariadicBoolean(&self, args: Vec<bool>);
fn PassVariadicBooleanAndDefault(&self, arg: bool, args: Vec<bool>);
fn PassVariadicByte(&self, args: Vec<i8>);
fn PassVariadicOctet(&self, args: Vec<u8>);
fn PassVariadicShort(&self, args: Vec<i16>);
fn PassVariadicUnsignedShort(&self, args: Vec<u16>);
fn PassVariadicLong(&self, args: Vec<i32>);
fn PassVariadicUnsignedLong(&self, args: Vec<u32>);
fn PassVariadicLongLong(&self, args: Vec<i64>);
fn PassVariadicUnsignedLongLong(&self, args: Vec<u64>);
fn PassVariadicUnrestrictedFloat(&self, args: Vec<f32>);
fn PassVariadicFloat(&self, args: Vec<Finite<f32>>);
fn PassVariadicUnrestrictedDouble(&self, args: Vec<f64>);
fn PassVariadicDouble(&self, args: Vec<Finite<f64>>);
fn PassVariadicString(&self, args: Vec<DOMString>);
fn PassVariadicUsvstring(&self, args: Vec<USVString>);
fn PassVariadicByteString(&self, args: Vec<ByteString>);
fn PassVariadicEnum(&self, args: Vec<TestEnum>);
fn PassVariadicInterface(&self, args: &[&Blob]);
fn PassVariadicUnion(&self, args: Vec<HTMLElementOrLong>);
fn PassVariadicUnion2(&self, args: Vec<EventOrString>);
fn PassVariadicUnion3(&self, args: Vec<BlobOrString>);
fn PassVariadicUnion4(&self, args: Vec<BlobOrBoolean>);
fn PassVariadicUnion5(&self, args: Vec<StringOrUnsignedLong>);
fn PassVariadicUnion6(&self, args: Vec<UnsignedLongOrBoolean>);
fn PassVariadicUnion7(&self, args: Vec<ByteStringOrLong>);
fn PassVariadicAny(&self, cx: SafeJSContext, args: Vec<HandleValue<'_>>);
fn PassVariadicObject(&self, cx: SafeJSContext, args: Vec<*mut JSObject>);
fn PassSequenceSequence(&self, seq: Vec<Vec<i32>>);
fn ReturnSequenceSequence(&self) -> Vec<Vec<i32>>;
fn PassUnionSequenceSequence(&self, seq: LongOrLongSequenceSequence);
fn PassRecord(&self, arg: Record<DOMString, i32>);
fn PassRecordWithUSVStringKey(&self, arg: Record<USVString, i32>);
fn PassRecordWithByteStringKey(&self, arg: Record<ByteString, i32>);
fn PassNullableRecord(&self, arg: Option<Record<DOMString, i32>>);
fn PassRecordOfNullableInts(&self, arg: Record<DOMString, Option<i32>>);
fn PassOptionalRecordOfNullableInts(
&self,
arg: Option<Record<DOMString, Option<i32>>>,
);
fn PassOptionalNullableRecordOfNullableInts(
&self,
arg: Option<Option<Record<DOMString, Option<i32>>>>,
);
fn PassCastableObjectRecord(
&self,
arg: Record<DOMString, Root<Dom<TestBinding>>>,
);
fn PassNullableCastableObjectRecord(
&self,
arg: Record<DOMString, Option<Root<Dom<TestBinding>>>>,
);
fn PassCastableObjectNullableRecord(
&self,
arg: Option<Record<DOMString, Root<Dom<TestBinding>>>>,
);
fn PassNullableCastableObjectNullableRecord(
&self,
arg: Option<Record<DOMString, Option<Root<Dom<TestBinding>>>>>,
);
fn PassOptionalRecord(&self, arg: Option<Record<DOMString, i32>>);
fn PassOptionalNullableRecord(
&self,
arg: Option<Option<Record<DOMString, i32>>>,
);
fn PassOptionalNullableRecordWithDefaultValue(
&self,
arg: Option<Record<DOMString, i32>>,
);
fn PassOptionalObjectRecord(
&self,
arg: Option<Record<DOMString, Root<Dom<TestBinding>>>>,
);
fn PassStringRecord(&self, arg: Record<DOMString, DOMString>);
fn PassByteStringRecord(&self, arg: Record<DOMString, ByteString>);
fn PassRecordOfRecords(
&self,
arg: Record<DOMString, Record<DOMString, i32>>,
);
fn PassRecordUnion(&self, init: LongOrStringByteStringRecord);
fn PassRecordUnion2(&self, init: TestBindingOrStringByteStringRecord);
fn PassRecordUnion3(
&self,
init: 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 BooleanAttributeStatic(global: &GlobalScope) -> bool;
fn SetBooleanAttributeStatic(global: &GlobalScope, value: bool);
fn ReceiveVoidStatic(global: &GlobalScope);
fn BooleanMozPreference(&self, pref_name: DOMString) -> bool;
fn StringMozPreference(&self, pref_name: DOMString) -> DOMString;
fn PrefControlledAttributeDisabled(&self) -> bool;
fn PrefControlledStaticAttributeDisabled(global: &GlobalScope) -> bool;
fn PrefControlledMethodDisabled(&self);
fn PrefControlledStaticMethodDisabled(global: &GlobalScope);
fn AdvanceClock(&self, millis: i32);
fn PrefControlledAttributeEnabled(&self) -> bool;
fn PrefControlledStaticAttributeEnabled(global: &GlobalScope) -> bool;
fn PrefControlledMethodEnabled(&self);
fn PrefControlledStaticMethodEnabled(global: &GlobalScope);
fn FuncControlledAttributeDisabled(&self) -> bool;
fn FuncControlledStaticAttributeDisabled(global: &GlobalScope) -> bool;
fn FuncControlledMethodDisabled(&self);
fn FuncControlledStaticMethodDisabled(global: &GlobalScope);
fn FuncControlledAttributeEnabled(&self) -> bool;
fn FuncControlledStaticAttributeEnabled(global: &GlobalScope) -> bool;
fn FuncControlledMethodEnabled(&self);
fn FuncControlledStaticMethodEnabled(global: &GlobalScope);
fn ReturnResolvedPromise(
&self,
cx: SafeJSContext,
value: HandleValue<'_>,
) -> Result<Rc<Promise>, Error>;
fn ReturnRejectedPromise(
&self,
cx: SafeJSContext,
value: HandleValue<'_>,
) -> Result<Rc<Promise>, Error>;
fn PromiseAttribute(
&self,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn AcceptPromise(&self, string: &Promise);
fn PromiseNativeHandler(
&self,
resolve: Option<Rc<SimpleCallback>>,
reject: Option<Rc<SimpleCallback>>,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn PromiseResolveNative(
&self,
cx: SafeJSContext,
p: &Promise,
value: HandleValue<'_>,
);
fn PromiseRejectNative(
&self,
cx: SafeJSContext,
p: &Promise,
value: HandleValue<'_>,
);
fn PromiseRejectWithTypeError(&self, p: &Promise, message: USVString);
fn ResolvePromiseDelayed(&self, p: &Promise, value: DOMString, ms: u64);
fn StaticThrowToRejectPromise(
global: &GlobalScope,
) -> Result<Rc<Promise>, Error>;
fn MethodThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>;
fn GetGetterThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>;
fn StaticInternalThrowToRejectPromise(
global: &GlobalScope,
arg: u64,
) -> Rc<Promise>;
fn MethodInternalThrowToRejectPromise(&self, arg: u64) -> Rc<Promise>;
fn Panic(&self);
fn EntryGlobal(&self) -> Root<Dom<GlobalScope>>;
fn IncumbentGlobal(&self) -> Root<Dom<GlobalScope>>;
fn SemiExposedBoolFromInterface(&self) -> bool;
fn GetDictionaryWithParent(
&self,
parent: DOMString,
child: DOMString,
) -> TestDictionaryWithParent;
fn BoolFromSemiExposedPartialInterface(&self) -> bool;
fn SemiExposedBoolFromPartialInterface(&self) -> bool;
fn CrashHard(&self);
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Result<Root<Dom<TestBinding>>, Error>;
fn Constructor_(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
numberSequence: Vec<f64>,
) -> Result<Root<Dom<TestBinding>>, Error>;
fn Constructor__(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
num: f64,
) -> Result<Root<Dom<TestBinding>>, Error>;
}
Required Methods§
fn BooleanAttribute(&self) -> bool
fn SetBooleanAttribute(&self, value: bool)
fn ByteAttribute(&self) -> i8
fn SetByteAttribute(&self, value: i8)
fn OctetAttribute(&self) -> u8
fn SetOctetAttribute(&self, value: u8)
fn ShortAttribute(&self) -> i16
fn SetShortAttribute(&self, value: i16)
fn UnsignedShortAttribute(&self) -> u16
fn SetUnsignedShortAttribute(&self, value: u16)
fn LongAttribute(&self) -> i32
fn SetLongAttribute(&self, value: i32)
fn UnsignedLongAttribute(&self) -> u32
fn SetUnsignedLongAttribute(&self, value: u32)
fn LongLongAttribute(&self) -> i64
fn SetLongLongAttribute(&self, value: i64)
fn UnsignedLongLongAttribute(&self) -> u64
fn SetUnsignedLongLongAttribute(&self, value: u64)
fn UnrestrictedFloatAttribute(&self) -> f32
fn SetUnrestrictedFloatAttribute(&self, value: f32)
fn FloatAttribute(&self) -> Finite<f32>
fn SetFloatAttribute(&self, value: Finite<f32>)
fn UnrestrictedDoubleAttribute(&self) -> f64
fn SetUnrestrictedDoubleAttribute(&self, value: f64)
fn DoubleAttribute(&self) -> Finite<f64>
fn SetDoubleAttribute(&self, value: Finite<f64>)
fn StringAttribute(&self) -> DOMString
fn SetStringAttribute(&self, value: DOMString)
fn UsvstringAttribute(&self) -> USVString
fn SetUsvstringAttribute(&self, value: USVString)
fn ByteStringAttribute(&self) -> ByteString
fn SetByteStringAttribute(&self, value: ByteString)
fn EnumAttribute(&self) -> TestEnum
fn SetEnumAttribute(&self, value: TestEnum)
fn InterfaceAttribute(&self, _can_gc: CanGc) -> Root<Dom<Blob>>
fn SetInterfaceAttribute(&self, value: &Blob)
fn UnionAttribute(&self) -> HTMLElementOrLong
fn SetUnionAttribute(&self, value: HTMLElementOrLong)
fn Union2Attribute(&self) -> EventOrString
fn SetUnion2Attribute(&self, value: EventOrString)
fn Union3Attribute(&self) -> EventOrUSVString
fn SetUnion3Attribute(&self, value: EventOrUSVString)
fn Union4Attribute(&self) -> StringOrUnsignedLong
fn SetUnion4Attribute(&self, value: StringOrUnsignedLong)
fn Union5Attribute(&self) -> StringOrBoolean
fn SetUnion5Attribute(&self, value: StringOrBoolean)
fn Union6Attribute(&self) -> UnsignedLongOrBoolean
fn SetUnion6Attribute(&self, value: UnsignedLongOrBoolean)
fn Union7Attribute(&self) -> BlobOrBoolean
fn SetUnion7Attribute(&self, value: BlobOrBoolean)
fn Union8Attribute(&self) -> BlobOrUnsignedLong
fn SetUnion8Attribute(&self, value: BlobOrUnsignedLong)
fn Union9Attribute(&self) -> ByteStringOrLong
fn SetUnion9Attribute(&self, value: ByteStringOrLong)
fn ArrayAttribute(&self, cx: SafeJSContext) -> Uint8ClampedArray
fn AnyAttribute(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn SetAnyAttribute(&self, cx: SafeJSContext, value: HandleValue<'_>)
fn ObjectAttribute(&self, cx: SafeJSContext) -> NonNull<JSObject>
fn SetObjectAttribute(&self, cx: SafeJSContext, value: *mut JSObject)
fn GetBooleanAttributeNullable(&self) -> Option<bool>
fn SetBooleanAttributeNullable(&self, value: Option<bool>)
fn GetByteAttributeNullable(&self) -> Option<i8>
fn SetByteAttributeNullable(&self, value: Option<i8>)
fn GetOctetAttributeNullable(&self) -> Option<u8>
fn SetOctetAttributeNullable(&self, value: Option<u8>)
fn GetShortAttributeNullable(&self) -> Option<i16>
fn SetShortAttributeNullable(&self, value: Option<i16>)
fn GetUnsignedShortAttributeNullable(&self) -> Option<u16>
fn SetUnsignedShortAttributeNullable(&self, value: Option<u16>)
fn GetLongAttributeNullable(&self) -> Option<i32>
fn SetLongAttributeNullable(&self, value: Option<i32>)
fn GetUnsignedLongAttributeNullable(&self) -> Option<u32>
fn SetUnsignedLongAttributeNullable(&self, value: Option<u32>)
fn GetLongLongAttributeNullable(&self) -> Option<i64>
fn SetLongLongAttributeNullable(&self, value: Option<i64>)
fn GetUnsignedLongLongAttributeNullable(&self) -> Option<u64>
fn SetUnsignedLongLongAttributeNullable(&self, value: Option<u64>)
fn GetUnrestrictedFloatAttributeNullable(&self) -> Option<f32>
fn SetUnrestrictedFloatAttributeNullable(&self, value: Option<f32>)
fn GetFloatAttributeNullable(&self) -> Option<Finite<f32>>
fn SetFloatAttributeNullable(&self, value: Option<Finite<f32>>)
fn GetUnrestrictedDoubleAttributeNullable(&self) -> Option<f64>
fn SetUnrestrictedDoubleAttributeNullable(&self, value: Option<f64>)
fn GetDoubleAttributeNullable(&self) -> Option<Finite<f64>>
fn SetDoubleAttributeNullable(&self, value: Option<Finite<f64>>)
fn GetStringAttributeNullable(&self) -> Option<DOMString>
fn SetStringAttributeNullable(&self, value: Option<DOMString>)
fn GetUsvstringAttributeNullable(&self) -> Option<USVString>
fn SetUsvstringAttributeNullable(&self, value: Option<USVString>)
fn GetByteStringAttributeNullable(&self) -> Option<ByteString>
fn SetByteStringAttributeNullable(&self, value: Option<ByteString>)
fn GetEnumAttributeNullable(&self) -> Option<TestEnum>
fn GetInterfaceAttributeNullable( &self, _can_gc: CanGc, ) -> Option<Root<Dom<Blob>>>
fn SetInterfaceAttributeNullable(&self, value: Option<&Blob>)
fn GetInterfaceAttributeWeak(&self) -> Option<Root<Dom<URL>>>
fn SetInterfaceAttributeWeak(&self, value: Option<&URL>)
fn GetObjectAttributeNullable( &self, cx: SafeJSContext, ) -> Option<NonNull<JSObject>>
fn SetObjectAttributeNullable(&self, cx: SafeJSContext, value: *mut JSObject)
fn GetUnionAttributeNullable(&self) -> Option<HTMLElementOrLong>
fn SetUnionAttributeNullable(&self, value: Option<HTMLElementOrLong>)
fn GetUnion2AttributeNullable(&self) -> Option<EventOrString>
fn SetUnion2AttributeNullable(&self, value: Option<EventOrString>)
fn GetUnion3AttributeNullable(&self) -> Option<BlobOrBoolean>
fn SetUnion3AttributeNullable(&self, value: Option<BlobOrBoolean>)
fn GetUnion4AttributeNullable(&self) -> Option<UnsignedLongOrBoolean>
fn SetUnion4AttributeNullable(&self, value: Option<UnsignedLongOrBoolean>)
fn GetUnion5AttributeNullable(&self) -> Option<StringOrBoolean>
fn SetUnion5AttributeNullable(&self, value: Option<StringOrBoolean>)
fn GetUnion6AttributeNullable(&self) -> Option<ByteStringOrLong>
fn SetUnion6AttributeNullable(&self, value: Option<ByteStringOrLong>)
fn BinaryRenamedAttribute(&self) -> DOMString
fn SetBinaryRenamedAttribute(&self, value: DOMString)
fn BinaryRenamedAttribute2(&self) -> DOMString
fn SetBinaryRenamedAttribute2(&self, value: DOMString)
fn Attr_to_automatically_rename(&self) -> DOMString
fn SetAttr_to_automatically_rename(&self, value: DOMString)
fn ForwardedAttribute(&self) -> Root<Dom<TestBinding>>
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, _can_gc: CanGc) -> Root<Dom<Blob>>
fn ReceiveAny(&self, cx: SafeJSContext, rval: MutableHandleValue<'_>)
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, _can_gc: CanGc) -> Vec<Root<Dom<Blob>>>
fn ReceiveNullableByte(&self) -> Option<i8>
fn ReceiveNullableBoolean(&self) -> Option<bool>
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, _can_gc: CanGc) -> 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 ReceiveUnionIdentity( &self, cx: SafeJSContext, arg: StringOrObject, ) -> StringOrObject
fn PassBoolean(&self, arg: bool)
fn PassByte(&self, arg: i8)
fn PassOctet(&self, arg: u8)
fn PassShort(&self, arg: i16)
fn PassUnsignedShort(&self, arg: u16)
fn PassLong(&self, arg: i32)
fn PassUnsignedLong(&self, arg: u32)
fn PassLongLong(&self, arg: i64)
fn PassUnsignedLongLong(&self, arg: u64)
fn PassUnrestrictedFloat(&self, arg: f32)
fn PassFloat(&self, arg: Finite<f32>)
fn PassUnrestrictedDouble(&self, arg: f64)
fn PassDouble(&self, arg: Finite<f64>)
fn PassString(&self, arg: DOMString)
fn PassUsvstring(&self, arg: USVString)
fn PassByteString(&self, arg: ByteString)
fn PassEnum(&self, arg: TestEnum)
fn PassInterface(&self, arg: &Blob)
fn PassTypedArray(&self, arg: CustomAutoRooterGuard<'_, Int8Array>)
fn PassTypedArray2(&self, arg: CustomAutoRooterGuard<'_, ArrayBuffer>)
fn PassTypedArray3(&self, arg: CustomAutoRooterGuard<'_, ArrayBufferView>)
fn PassUnion(&self, arg: HTMLElementOrLong)
fn PassUnion2(&self, data: EventOrString)
fn PassUnion3(&self, data: BlobOrString)
fn PassUnion4(&self, seq: StringOrStringSequence)
fn PassUnion5(&self, data: StringOrBoolean)
fn PassUnion6(&self, bool: UnsignedLongOrBoolean)
fn PassUnion7(&self, arg: StringSequenceOrUnsignedLong)
fn PassUnion8(&self, arg: ByteStringSequenceOrLong)
fn PassUnion9(&self, arg: TestDictionaryOrLong)
fn PassUnion10(&self, cx: SafeJSContext, arg: StringOrObject)
fn PassUnion11(&self, arg: ArrayBufferOrArrayBufferView)
fn PassUnionWithTypedef(&self, arg: DocumentOrStringOrURLOrBlob)
fn PassUnionWithTypedef2(&self, arg: LongSequenceOrStringOrURLOrBlob)
fn PassAny(&self, cx: SafeJSContext, arg: HandleValue<'_>)
fn PassObject(&self, cx: SafeJSContext, arg: *mut JSObject)
fn PassCallbackFunction(&self, fun: Rc<Function>)
fn PassCallbackInterface(&self, listener: Rc<EventListener>)
fn PassSequence(&self, seq: Vec<i32>)
fn PassAnySequence( &self, cx: SafeJSContext, seq: CustomAutoRooterGuard<'_, Vec<JSVal>>, )
fn AnySequencePassthrough( &self, cx: SafeJSContext, seq: CustomAutoRooterGuard<'_, Vec<JSVal>>, ) -> Vec<JSVal>
fn PassObjectSequence( &self, cx: SafeJSContext, seq: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>, )
fn PassStringSequence(&self, seq: Vec<DOMString>)
fn PassInterfaceSequence(&self, seq: Vec<Root<Dom<Blob>>>)
fn PassOverloaded(&self, arg: CustomAutoRooterGuard<'_, ArrayBuffer>)
fn PassOverloaded_(&self, arg: DOMString)
fn PassOverloadedDict(&self, arg: &Node) -> DOMString
fn PassOverloadedDict_(&self, arg: &TestURLLike) -> DOMString
fn PassNullableBoolean(&self, arg: Option<bool>)
fn PassNullableByte(&self, arg: Option<i8>)
fn PassNullableOctet(&self, arg: Option<u8>)
fn PassNullableShort(&self, arg: Option<i16>)
fn PassNullableUnsignedShort(&self, arg: Option<u16>)
fn PassNullableLong(&self, arg: Option<i32>)
fn PassNullableUnsignedLong(&self, arg: Option<u32>)
fn PassNullableLongLong(&self, arg: Option<i64>)
fn PassNullableUnsignedLongLong(&self, arg: Option<u64>)
fn PassNullableUnrestrictedFloat(&self, arg: Option<f32>)
fn PassNullableFloat(&self, arg: Option<Finite<f32>>)
fn PassNullableUnrestrictedDouble(&self, arg: Option<f64>)
fn PassNullableDouble(&self, arg: Option<Finite<f64>>)
fn PassNullableString(&self, arg: Option<DOMString>)
fn PassNullableUsvstring(&self, arg: Option<USVString>)
fn PassNullableByteString(&self, arg: Option<ByteString>)
fn PassNullableInterface(&self, arg: Option<&Blob>)
fn PassNullableObject(&self, cx: SafeJSContext, arg: *mut JSObject)
fn PassNullableTypedArray( &self, arg: CustomAutoRooterGuard<'_, Option<Int8Array>>, )
fn PassNullableUnion(&self, arg: Option<HTMLElementOrLong>)
fn PassNullableUnion2(&self, data: Option<EventOrString>)
fn PassNullableUnion3(&self, data: Option<StringOrLongSequence>)
fn PassNullableUnion4(&self, bool: Option<LongSequenceOrBoolean>)
fn PassNullableUnion5(&self, arg: Option<UnsignedLongOrBoolean>)
fn PassNullableUnion6(&self, arg: Option<ByteStringOrLong>)
fn PassNullableCallbackFunction(&self, fun: Option<Rc<Function>>)
fn PassNullableCallbackInterface(&self, listener: Option<Rc<EventListener>>)
fn PassNullableSequence(&self, seq: Option<Vec<i32>>)
fn PassOptionalBoolean(&self, arg: Option<bool>)
fn PassOptionalByte(&self, arg: Option<i8>)
fn PassOptionalOctet(&self, arg: Option<u8>)
fn PassOptionalShort(&self, arg: Option<i16>)
fn PassOptionalUnsignedShort(&self, arg: Option<u16>)
fn PassOptionalLong(&self, arg: Option<i32>)
fn PassOptionalUnsignedLong(&self, arg: Option<u32>)
fn PassOptionalLongLong(&self, arg: Option<i64>)
fn PassOptionalUnsignedLongLong(&self, arg: Option<u64>)
fn PassOptionalUnrestrictedFloat(&self, arg: Option<f32>)
fn PassOptionalFloat(&self, arg: Option<Finite<f32>>)
fn PassOptionalUnrestrictedDouble(&self, arg: Option<f64>)
fn PassOptionalDouble(&self, arg: Option<Finite<f64>>)
fn PassOptionalString(&self, arg: Option<DOMString>)
fn PassOptionalUsvstring(&self, arg: Option<USVString>)
fn PassOptionalByteString(&self, arg: Option<ByteString>)
fn PassOptionalEnum(&self, arg: Option<TestEnum>)
fn PassOptionalInterface(&self, arg: Option<&Blob>)
fn PassOptionalUnion(&self, arg: Option<HTMLElementOrLong>)
fn PassOptionalUnion2(&self, data: Option<EventOrString>)
fn PassOptionalUnion3(&self, arg: Option<StringOrLongSequence>)
fn PassOptionalUnion4(&self, data: Option<LongSequenceOrBoolean>)
fn PassOptionalUnion5(&self, bool: Option<UnsignedLongOrBoolean>)
fn PassOptionalUnion6(&self, arg: Option<ByteStringOrLong>)
fn PassOptionalAny(&self, cx: SafeJSContext, arg: HandleValue<'_>)
fn PassOptionalObject(&self, cx: SafeJSContext, arg: Option<*mut JSObject>)
fn PassOptionalCallbackFunction(&self, fun: Option<Rc<Function>>)
fn PassOptionalCallbackInterface(&self, listener: Option<Rc<EventListener>>)
fn PassOptionalSequence(&self, seq: Option<Vec<i32>>)
fn PassOptionalNullableBoolean(&self, arg: Option<Option<bool>>)
fn PassOptionalNullableByte(&self, arg: Option<Option<i8>>)
fn PassOptionalNullableOctet(&self, arg: Option<Option<u8>>)
fn PassOptionalNullableShort(&self, arg: Option<Option<i16>>)
fn PassOptionalNullableUnsignedShort(&self, arg: Option<Option<u16>>)
fn PassOptionalNullableLong(&self, arg: Option<Option<i32>>)
fn PassOptionalNullableUnsignedLong(&self, arg: Option<Option<u32>>)
fn PassOptionalNullableLongLong(&self, arg: Option<Option<i64>>)
fn PassOptionalNullableUnsignedLongLong(&self, arg: Option<Option<u64>>)
fn PassOptionalNullableUnrestrictedFloat(&self, arg: Option<Option<f32>>)
fn PassOptionalNullableFloat(&self, arg: Option<Option<Finite<f32>>>)
fn PassOptionalNullableUnrestrictedDouble(&self, arg: Option<Option<f64>>)
fn PassOptionalNullableDouble(&self, arg: Option<Option<Finite<f64>>>)
fn PassOptionalNullableString(&self, arg: Option<Option<DOMString>>)
fn PassOptionalNullableUsvstring(&self, arg: Option<Option<USVString>>)
fn PassOptionalNullableByteString(&self, arg: Option<Option<ByteString>>)
fn PassOptionalNullableInterface(&self, arg: Option<Option<&Blob>>)
fn PassOptionalNullableObject( &self, cx: SafeJSContext, arg: Option<*mut JSObject>, )
fn PassOptionalNullableUnion(&self, arg: Option<Option<HTMLElementOrLong>>)
fn PassOptionalNullableUnion2(&self, data: Option<Option<EventOrString>>)
fn PassOptionalNullableUnion3(&self, arg: Option<Option<StringOrLongSequence>>)
fn PassOptionalNullableUnion4( &self, data: Option<Option<LongSequenceOrBoolean>>, )
fn PassOptionalNullableUnion5( &self, bool: Option<Option<UnsignedLongOrBoolean>>, )
fn PassOptionalNullableUnion6(&self, arg: Option<Option<ByteStringOrLong>>)
fn PassOptionalNullableCallbackFunction( &self, fun: Option<Option<Rc<Function>>>, )
fn PassOptionalNullableCallbackInterface( &self, listener: Option<Option<Rc<EventListener>>>, )
fn PassOptionalNullableSequence(&self, seq: Option<Option<Vec<i32>>>)
fn PassOptionalBooleanWithDefault(&self, arg: bool)
fn PassOptionalByteWithDefault(&self, arg: i8)
fn PassOptionalOctetWithDefault(&self, arg: u8)
fn PassOptionalShortWithDefault(&self, arg: i16)
fn PassOptionalUnsignedShortWithDefault(&self, arg: u16)
fn PassOptionalLongWithDefault(&self, arg: i32)
fn PassOptionalUnsignedLongWithDefault(&self, arg: u32)
fn PassOptionalLongLongWithDefault(&self, arg: i64)
fn PassOptionalUnsignedLongLongWithDefault(&self, arg: u64)
fn PassOptionalBytestringWithDefault(&self, arg: ByteString)
fn PassOptionalStringWithDefault(&self, arg: DOMString)
fn PassOptionalUsvstringWithDefault(&self, arg: USVString)
fn PassOptionalEnumWithDefault(&self, arg: TestEnum)
fn PassOptionalSequenceWithDefault(&self, seq: Vec<i32>)
fn PassOptionalNullableBooleanWithDefault(&self, arg: Option<bool>)
fn PassOptionalNullableByteWithDefault(&self, arg: Option<i8>)
fn PassOptionalNullableOctetWithDefault(&self, arg: Option<u8>)
fn PassOptionalNullableShortWithDefault(&self, arg: Option<i16>)
fn PassOptionalNullableUnsignedShortWithDefault(&self, arg: Option<u16>)
fn PassOptionalNullableLongWithDefault(&self, arg: Option<i32>)
fn PassOptionalNullableUnsignedLongWithDefault(&self, arg: Option<u32>)
fn PassOptionalNullableLongLongWithDefault(&self, arg: Option<i64>)
fn PassOptionalNullableUnsignedLongLongWithDefault(&self, arg: Option<u64>)
fn PassOptionalNullableStringWithDefault(&self, arg: Option<DOMString>)
fn PassOptionalNullableUsvstringWithDefault(&self, arg: Option<USVString>)
fn PassOptionalNullableByteStringWithDefault(&self, arg: Option<ByteString>)
fn PassOptionalNullableInterfaceWithDefault(&self, arg: Option<&Blob>)
fn PassOptionalNullableObjectWithDefault( &self, cx: SafeJSContext, arg: *mut JSObject, )
fn PassOptionalNullableUnionWithDefault(&self, arg: Option<HTMLElementOrLong>)
fn PassOptionalNullableUnion2WithDefault(&self, data: Option<EventOrString>)
fn PassOptionalNullableCallbackInterfaceWithDefault( &self, listener: Option<Rc<EventListener>>, )
fn PassOptionalAnyWithDefault(&self, cx: SafeJSContext, arg: HandleValue<'_>)
fn PassOptionalNullableBooleanWithNonNullDefault(&self, arg: Option<bool>)
fn PassOptionalNullableByteWithNonNullDefault(&self, arg: Option<i8>)
fn PassOptionalNullableOctetWithNonNullDefault(&self, arg: Option<u8>)
fn PassOptionalNullableShortWithNonNullDefault(&self, arg: Option<i16>)
fn PassOptionalNullableUnsignedShortWithNonNullDefault(&self, arg: Option<u16>)
fn PassOptionalNullableLongWithNonNullDefault(&self, arg: Option<i32>)
fn PassOptionalNullableUnsignedLongWithNonNullDefault(&self, arg: Option<u32>)
fn PassOptionalNullableLongLongWithNonNullDefault(&self, arg: Option<i64>)
fn PassOptionalNullableUnsignedLongLongWithNonNullDefault( &self, arg: Option<u64>, )
fn PassOptionalNullableStringWithNonNullDefault(&self, arg: Option<DOMString>)
fn PassOptionalNullableUsvstringWithNonNullDefault( &self, arg: Option<USVString>, )
fn PassOptionalOverloaded( &self, arg0: &TestBinding, arg1: u32, arg2: u32, ) -> Root<Dom<TestBinding>>
fn PassOptionalOverloaded_(&self, arg0: &Blob, arg1: u32)
fn PassVariadicBoolean(&self, args: Vec<bool>)
fn PassVariadicBooleanAndDefault(&self, arg: bool, args: Vec<bool>)
fn PassVariadicByte(&self, args: Vec<i8>)
fn PassVariadicOctet(&self, args: Vec<u8>)
fn PassVariadicShort(&self, args: Vec<i16>)
fn PassVariadicUnsignedShort(&self, args: Vec<u16>)
fn PassVariadicLong(&self, args: Vec<i32>)
fn PassVariadicUnsignedLong(&self, args: Vec<u32>)
fn PassVariadicLongLong(&self, args: Vec<i64>)
fn PassVariadicUnsignedLongLong(&self, args: Vec<u64>)
fn PassVariadicUnrestrictedFloat(&self, args: Vec<f32>)
fn PassVariadicFloat(&self, args: Vec<Finite<f32>>)
fn PassVariadicUnrestrictedDouble(&self, args: Vec<f64>)
fn PassVariadicDouble(&self, args: Vec<Finite<f64>>)
fn PassVariadicString(&self, args: Vec<DOMString>)
fn PassVariadicUsvstring(&self, args: Vec<USVString>)
fn PassVariadicByteString(&self, args: Vec<ByteString>)
fn PassVariadicEnum(&self, args: Vec<TestEnum>)
fn PassVariadicInterface(&self, args: &[&Blob])
fn PassVariadicUnion(&self, args: Vec<HTMLElementOrLong>)
fn PassVariadicUnion2(&self, args: Vec<EventOrString>)
fn PassVariadicUnion3(&self, args: Vec<BlobOrString>)
fn PassVariadicUnion4(&self, args: Vec<BlobOrBoolean>)
fn PassVariadicUnion5(&self, args: Vec<StringOrUnsignedLong>)
fn PassVariadicUnion6(&self, args: Vec<UnsignedLongOrBoolean>)
fn PassVariadicUnion7(&self, args: Vec<ByteStringOrLong>)
fn PassVariadicAny(&self, cx: SafeJSContext, args: Vec<HandleValue<'_>>)
fn PassVariadicObject(&self, cx: SafeJSContext, args: Vec<*mut JSObject>)
fn PassSequenceSequence(&self, seq: Vec<Vec<i32>>)
fn ReturnSequenceSequence(&self) -> Vec<Vec<i32>>
fn PassUnionSequenceSequence(&self, seq: LongOrLongSequenceSequence)
fn PassRecord(&self, arg: Record<DOMString, i32>)
fn PassRecordWithUSVStringKey(&self, arg: Record<USVString, i32>)
fn PassRecordWithByteStringKey(&self, arg: Record<ByteString, i32>)
fn PassNullableRecord(&self, arg: Option<Record<DOMString, i32>>)
fn PassRecordOfNullableInts(&self, arg: Record<DOMString, Option<i32>>)
fn PassOptionalRecordOfNullableInts( &self, arg: Option<Record<DOMString, Option<i32>>>, )
fn PassOptionalNullableRecordOfNullableInts( &self, arg: Option<Option<Record<DOMString, Option<i32>>>>, )
fn PassCastableObjectRecord( &self, arg: Record<DOMString, Root<Dom<TestBinding>>>, )
fn PassNullableCastableObjectRecord( &self, arg: Record<DOMString, Option<Root<Dom<TestBinding>>>>, )
fn PassCastableObjectNullableRecord( &self, arg: Option<Record<DOMString, Root<Dom<TestBinding>>>>, )
fn PassNullableCastableObjectNullableRecord( &self, arg: Option<Record<DOMString, Option<Root<Dom<TestBinding>>>>>, )
fn PassOptionalRecord(&self, arg: Option<Record<DOMString, i32>>)
fn PassOptionalNullableRecord( &self, arg: Option<Option<Record<DOMString, i32>>>, )
fn PassOptionalNullableRecordWithDefaultValue( &self, arg: Option<Record<DOMString, i32>>, )
fn PassOptionalObjectRecord( &self, arg: Option<Record<DOMString, Root<Dom<TestBinding>>>>, )
fn PassStringRecord(&self, arg: Record<DOMString, DOMString>)
fn PassByteStringRecord(&self, arg: Record<DOMString, ByteString>)
fn PassRecordOfRecords(&self, arg: Record<DOMString, Record<DOMString, i32>>)
fn PassRecordUnion(&self, init: LongOrStringByteStringRecord)
fn PassRecordUnion2(&self, init: TestBindingOrStringByteStringRecord)
fn PassRecordUnion3( &self, init: 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 BooleanAttributeStatic(global: &GlobalScope) -> bool
fn SetBooleanAttributeStatic(global: &GlobalScope, value: bool)
fn ReceiveVoidStatic(global: &GlobalScope)
fn BooleanMozPreference(&self, pref_name: DOMString) -> bool
fn StringMozPreference(&self, pref_name: DOMString) -> DOMString
fn PrefControlledAttributeDisabled(&self) -> bool
fn PrefControlledStaticAttributeDisabled(global: &GlobalScope) -> bool
fn PrefControlledMethodDisabled(&self)
fn PrefControlledStaticMethodDisabled(global: &GlobalScope)
fn AdvanceClock(&self, millis: i32)
fn PrefControlledAttributeEnabled(&self) -> bool
fn PrefControlledStaticAttributeEnabled(global: &GlobalScope) -> bool
fn PrefControlledMethodEnabled(&self)
fn PrefControlledStaticMethodEnabled(global: &GlobalScope)
fn FuncControlledAttributeDisabled(&self) -> bool
fn FuncControlledStaticAttributeDisabled(global: &GlobalScope) -> bool
fn FuncControlledMethodDisabled(&self)
fn FuncControlledStaticMethodDisabled(global: &GlobalScope)
fn FuncControlledAttributeEnabled(&self) -> bool
fn FuncControlledStaticAttributeEnabled(global: &GlobalScope) -> bool
fn FuncControlledMethodEnabled(&self)
fn FuncControlledStaticMethodEnabled(global: &GlobalScope)
fn ReturnResolvedPromise( &self, cx: SafeJSContext, value: HandleValue<'_>, ) -> Result<Rc<Promise>, Error>
fn ReturnRejectedPromise( &self, cx: SafeJSContext, value: HandleValue<'_>, ) -> Result<Rc<Promise>, Error>
fn PromiseAttribute(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>
fn AcceptPromise(&self, string: &Promise)
fn PromiseNativeHandler( &self, resolve: Option<Rc<SimpleCallback>>, reject: Option<Rc<SimpleCallback>>, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>
fn PromiseResolveNative( &self, cx: SafeJSContext, p: &Promise, value: HandleValue<'_>, )
fn PromiseRejectNative( &self, cx: SafeJSContext, p: &Promise, value: HandleValue<'_>, )
fn PromiseRejectWithTypeError(&self, p: &Promise, message: USVString)
fn ResolvePromiseDelayed(&self, p: &Promise, value: DOMString, ms: u64)
fn StaticThrowToRejectPromise( global: &GlobalScope, ) -> Result<Rc<Promise>, Error>
fn MethodThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>
fn GetGetterThrowToRejectPromise(&self) -> Result<Rc<Promise>, Error>
fn StaticInternalThrowToRejectPromise( global: &GlobalScope, arg: u64, ) -> Rc<Promise>
fn MethodInternalThrowToRejectPromise(&self, arg: u64) -> Rc<Promise>
fn Panic(&self)
fn EntryGlobal(&self) -> Root<Dom<GlobalScope>>
fn IncumbentGlobal(&self) -> Root<Dom<GlobalScope>>
fn SemiExposedBoolFromInterface(&self) -> bool
fn GetDictionaryWithParent( &self, parent: DOMString, child: DOMString, ) -> TestDictionaryWithParent
fn BoolFromSemiExposedPartialInterface(&self) -> bool
fn SemiExposedBoolFromPartialInterface(&self) -> bool
fn CrashHard(&self)
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<TestBinding>>, Error>
fn Constructor_( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, numberSequence: Vec<f64>, ) -> Result<Root<Dom<TestBinding>>, Error>
fn Constructor__( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, num: f64, ) -> Result<Root<Dom<TestBinding>>, Error>
Object Safety§
This trait is not object safe.