#[repr(C)]pub struct DragData {
pub data: MimeTypeDataVec,
pub effect_allowed: DragEffect,
}Expand description
Drag data (HTML5 DataTransfer).
Holds the payload(s) being transferred during a drag operation, keyed by MIME type, plus the set of operations the source allows.
Fields§
§data: MimeTypeDataVecMIME type -> data mapping (vec-of-pairs for FFI compatibility).
e.g., "text/plain" -> "Hello World".
effect_allowed: DragEffectSet of drag operations the source permits for this drag.
Implementations§
Trait Implementations§
impl StructuralPartialEq for DragData
Auto Trait Implementations§
impl Freeze for DragData
impl RefUnwindSafe for DragData
impl Send for DragData
impl Sync for DragData
impl Unpin for DragData
impl UnsafeUnpin for DragData
impl UnwindSafe for DragData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more