pub enum DropOutcome {
InApp {
accepted: bool,
},
OsCopy,
OsMove,
Cancelled,
}Expand description
How a drag the source widget started ended. Delivered to the source’s
on_drag_ended handler so it can react (e.g. remove the item on a move).
One unified completion outcome for every drag a widget starts — whether it dropped on an in-app target, was exported to another application via the OS, or was cancelled.
Variants§
InApp
Dropped on an in-app target. accepted is what the target’s on_drop
returned.
OsCopy
Exported to another application via the OS as a copy.
OsMove
Exported to another application via the OS as a move — the source should remove the dragged item.
Cancelled
No drop happened: Escape, dropped on nothing, or the OS rejected it.
Trait Implementations§
Source§impl Clone for DropOutcome
impl Clone for DropOutcome
Source§fn clone(&self) -> DropOutcome
fn clone(&self) -> DropOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DropOutcome
Source§impl Debug for DropOutcome
impl Debug for DropOutcome
impl Eq for DropOutcome
Source§impl PartialEq for DropOutcome
impl PartialEq for DropOutcome
impl StructuralPartialEq for DropOutcome
Auto Trait Implementations§
impl Freeze for DropOutcome
impl RefUnwindSafe for DropOutcome
impl Send for DropOutcome
impl Sync for DropOutcome
impl Unpin for DropOutcome
impl UnsafeUnpin for DropOutcome
impl UnwindSafe for DropOutcome
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