pub struct TransferHandle { /* private fields */ }Expand description
Provides cancellation and status inspection for a drag transfer.
A handle can outlive the initial drag-and-drop call because the receiver may continue transferring file contents asynchronously.
Implementations§
Source§impl TransferHandle
impl TransferHandle
Sourcepub fn status(&self) -> TransferStatus
pub fn status(&self) -> TransferStatus
Returns the latest recorded transfer status without waiting.
For asynchronous receivers, a drop is not the same as successful file
delivery. Interpret TransferStatus::Dropped accordingly.
Auto Trait Implementations§
impl Freeze for TransferHandle
impl RefUnwindSafe for TransferHandle
impl Send for TransferHandle
impl Sync for TransferHandle
impl Unpin for TransferHandle
impl UnsafeUnpin for TransferHandle
impl UnwindSafe for TransferHandle
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