pub trait DataTransferMethods<D: DomTypes> {
// Required methods
fn DropEffect(&self) -> DOMString;
fn SetDropEffect(&self, value: DOMString);
fn EffectAllowed(&self) -> DOMString;
fn SetEffectAllowed(&self, value: DOMString);
fn Items(&self) -> DomRoot<D::DataTransferItemList>;
fn SetDragImage(&self, image: &D::Element, x: i32, y: i32);
fn Types(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn GetData(&self, format: DOMString) -> DOMString;
fn SetData(&self, format: DOMString, data: DOMString);
fn ClearData(&self, format: Option<DOMString>);
fn Files(&self, cx: &mut JSContext) -> DomRoot<D::FileList>;
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
) -> DomRoot<D::DataTransfer>;
}Required Methods§
fn DropEffect(&self) -> DOMString
fn SetDropEffect(&self, value: DOMString)
fn EffectAllowed(&self) -> DOMString
fn SetEffectAllowed(&self, value: DOMString)
fn Items(&self) -> DomRoot<D::DataTransferItemList>
fn SetDragImage(&self, image: &D::Element, x: i32, y: i32)
fn Types(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn GetData(&self, format: DOMString) -> DOMString
fn SetData(&self, format: DOMString, data: DOMString)
fn ClearData(&self, format: Option<DOMString>)
fn Files(&self, cx: &mut JSContext) -> DomRoot<D::FileList>
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, ) -> DomRoot<D::DataTransfer>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".