pub trait ClipboardItemMethods<D>where
D: DomTypes,{
// Required methods
fn PresentationStyle(&self) -> PresentationStyle;
fn Types(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn GetType(
&self,
realm: &mut CurrentRealm<'_>,
type_: DOMString,
) -> Result<Rc<<D as DomTypes>::Promise>, Error>;
fn Supports(global: &<D as DomTypes>::Window, type_: DOMString) -> bool;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
items: Record<DOMString, Rc<<D as DomTypes>::Promise>>,
options: &ClipboardItemOptions,
) -> Result<Root<Dom<<D as DomTypes>::ClipboardItem>>, Error>;
}Required Methods§
fn PresentationStyle(&self) -> PresentationStyle
fn Types(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn GetType( &self, realm: &mut CurrentRealm<'_>, type_: DOMString, ) -> Result<Rc<<D as DomTypes>::Promise>, Error>
fn Supports(global: &<D as DomTypes>::Window, type_: DOMString) -> bool
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, items: Record<DOMString, Rc<<D as DomTypes>::Promise>>, options: &ClipboardItemOptions, ) -> Result<Root<Dom<<D as DomTypes>::ClipboardItem>>, Error>
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.