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<()>;
}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<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".