pub enum DragMsg {
Start(String),
HoverZone(String),
LeaveZone,
Drop,
Cancel,
}Expand description
Every input the drag session accepts (FC-2) — the only legal way to mutate
a DragDrop.
Variants§
Start(String)
Begin dragging a known item (ignored if the item was never placed).
HoverZone(String)
The pointer is over a drop zone (only meaningful mid-drag).
LeaveZone
The pointer left every zone (hover cleared; still dragging).
Drop
Release over the current hover zone — commits a Move if the zone
changed, otherwise a no-op. Ends the drag either way.
Cancel
Abort the drag (Escape / released outside any zone). No move.
Trait Implementations§
impl Eq for DragMsg
impl StructuralPartialEq for DragMsg
Auto Trait Implementations§
impl Freeze for DragMsg
impl RefUnwindSafe for DragMsg
impl Send for DragMsg
impl Sync for DragMsg
impl Unpin for DragMsg
impl UnsafeUnpin for DragMsg
impl UnwindSafe for DragMsg
Blanket Implementations§
impl<T> Allocation for T
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