pub trait ClientMethods<D: DomTypes> {
// Required methods
fn Url(&self) -> USVString;
fn FrameType(&self) -> FrameType;
fn Id(&self) -> DOMString;
fn PostMessage(
&self,
cx: &mut JSContext,
message: HandleValue<'_>,
transfer: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>,
) -> Fallible<()>;
fn PostMessage_(
&self,
cx: &mut JSContext,
message: HandleValue<'_>,
options: RootedTraceableBox<StructuredSerializeOptions>,
) -> Fallible<()>;
}