pub enum FileDragInput {
Moved {
sequence: u64,
point: Point,
paths: Arc<[String]>,
},
Offered {
sequence: u64,
point: Point,
extensions: Arc<[Option<String>]>,
},
Dropped {
sequence: u64,
point: Point,
paths: Arc<[String]>,
target: Target,
},
Copied {
sequence: u64,
point: Point,
paths: Arc<[String]>,
target: Target,
},
Failed {
sequence: u64,
point: Point,
extensions: Arc<[Option<String>]>,
target: Target,
message: String,
},
Left {
sequence: u64,
},
}Expand description
Native file drags carry a batch and a window-local position.
Variants§
Moved
Offered
Promised files may expose extensions before they expose local paths.
Dropped
Copied
An asynchronous drop has copied its complete batch into local storage.
Failed
An accepted asynchronous drop could not prepare or copy its files.
Left
Trait Implementations§
Auto Trait Implementations§
impl Forget for FileDragInput
impl Freeze for FileDragInput
impl Move for FileDragInput
impl RefUnwindSafe for FileDragInput
impl Send for FileDragInput
impl Sync for FileDragInput
impl Unpin for FileDragInput
impl UnsafeUnpin for FileDragInput
impl UnwindSafe for FileDragInput
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