ClipboardItemMethods

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§

Source

fn PresentationStyle(&self) -> PresentationStyle

Source

fn Types(&self, cx: &mut JSContext, retval: MutableHandleValue<'_>)

Source

fn GetType( &self, realm: &mut CurrentRealm<'_>, type_: DOMString, ) -> Fallible<Rc<D::Promise>>

Source

fn Supports(global: &D::Window, type_: DOMString) -> bool

Source

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.

Implementors§