pub trait ClipboardItemMethods<D: DomTypes> {
// Required methods
fn PresentationStyle(&self) -> PresentationStyle;
fn Types(
&self,
cx: SafeJSContext,
_can_gc: CanGc,
retval: MutableHandleValue<'_>,
);
fn GetType(
&self,
type_: DOMString,
_can_gc: CanGc,
) -> Fallible<Rc<D::Promise>>;
fn Supports(global: &D::Window, type_: DOMString) -> bool;
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
items: Record<DOMString, Rc<D::Promise>>,
options: &ClipboardItemOptions,
) -> Fallible<DomRoot<D::ClipboardItem>>;
}
Required Methods§
fn PresentationStyle(&self) -> PresentationStyle
fn Types( &self, cx: SafeJSContext, _can_gc: CanGc, retval: MutableHandleValue<'_>, )
fn GetType(&self, type_: DOMString, _can_gc: CanGc) -> Fallible<Rc<D::Promise>>
fn Supports(global: &D::Window, type_: DOMString) -> bool
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, 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.