pub trait DataTransferMethods<D>where
    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) -> Root<Dom<<D as DomTypes>::DataTransferItemList>>;
    fn SetDragImage(&self, image: &<D as DomTypes>::Element, x: i32, y: i32);
    fn Types(
        &self,
        cx: JSContext,
        _can_gc: CanGc,
        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, _can_gc: CanGc) -> Root<Dom<<D as DomTypes>::FileList>>;
    fn Constructor(
        global: &<D as DomTypes>::Window,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
    ) -> Root<Dom<<D as DomTypes>::DataTransfer>>;
}Required Methods§
fn DropEffect(&self) -> DOMString
fn SetDropEffect(&self, value: DOMString)
fn EffectAllowed(&self) -> DOMString
fn SetEffectAllowed(&self, value: DOMString)
fn Items(&self) -> Root<Dom<<D as DomTypes>::DataTransferItemList>>
fn SetDragImage(&self, image: &<D as DomTypes>::Element, x: i32, y: i32)
fn Types(&self, cx: JSContext, _can_gc: CanGc, 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, _can_gc: CanGc) -> Root<Dom<<D as DomTypes>::FileList>>
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::DataTransfer>>
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.