pub enum ClipboardEvent {
Copy(CopyRequest),
Cut(CopyRequest),
Paste(Vec<Box<dyn DataTransferItem>>),
}Expand description
The user copied, cut or pasted in a view through the platform’s own command: the web’s
copy, cut and paste events, AppKit’s copy:, cut: and paste: actions. What the
user copies is written, and what they pasted read, through the event, which may reach what
the app’s own calls may not.
Variants§
Copy(CopyRequest)
Write what is selected.
Cut(CopyRequest)
Write what is selected, and remove it.
Paste(Vec<Box<dyn DataTransferItem>>)
The clipboard as the user pasted it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClipboardEvent
impl !Send for ClipboardEvent
impl !Sync for ClipboardEvent
impl !UnwindSafe for ClipboardEvent
impl Freeze for ClipboardEvent
impl Unpin for ClipboardEvent
impl UnsafeUnpin for ClipboardEvent
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