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 Forget for ClipboardEvent
impl Freeze for ClipboardEventwhere
*const dyn Fn(Vec<ClipboardItem>, CopyOptions) -> Pin<Box<dyn Future<Output = Result<(), ClipboardError>>>> is !null: Freeze,
PhantomData<dyn Fn(Vec<ClipboardItem>, CopyOptions) -> Pin<Box<dyn Future<Output = Result<(), ClipboardError>>>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Box<dyn DataTransferItem>>: Freeze,
impl Move for ClipboardEvent
impl Unpin for ClipboardEventwhere
Box<dyn Fn(Vec<ClipboardItem>, CopyOptions) -> Pin<Box<dyn Future<Output = Result<(), ClipboardError>>>>>: Unpin,
*const u8 is !null: Unpin,
Box<dyn DataTransferItem>: Unpin,
impl UnsafeUnpin for ClipboardEventwhere
*const dyn Fn(Vec<ClipboardItem>, CopyOptions) -> Pin<Box<dyn Future<Output = Result<(), ClipboardError>>>> is !null: UnsafeUnpin,
PhantomData<dyn Fn(Vec<ClipboardItem>, CopyOptions) -> Pin<Box<dyn Future<Output = Result<(), ClipboardError>>>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Box<dyn DataTransferItem>>: UnsafeUnpin,
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