pub trait ClipboardItemMethods<D: DomTypes> {
// Required methods
fn PresentationStyle(&self) -> PresentationStyle;
fn Types(&self, cx: &mut JSContext, retval: MutableHandleValue<'_>);
fn GetType(
&self,
realm: &mut CurrentRealm<'_>,
type_: DOMString,
) -> Fallible<Rc<D::Promise>>;
fn Supports(global: &D::Window, type_: DOMString) -> bool;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
items: Record<DOMString, Rc<D::Promise>>,
options: &ClipboardItemOptions,
) -> Fallible<DomRoot<D::ClipboardItem>>;
}Required Methods§
fn PresentationStyle(&self) -> PresentationStyle
fn Types(&self, cx: &mut JSContext, retval: MutableHandleValue<'_>)
fn GetType( &self, realm: &mut CurrentRealm<'_>, type_: DOMString, ) -> Fallible<Rc<D::Promise>>
fn Supports(global: &D::Window, type_: DOMString) -> bool
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, items: Record<DOMString, Rc<D::Promise>>, options: &ClipboardItemOptions, ) -> Fallible<DomRoot<D::ClipboardItem>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.