Skip to main content

ClipboardSink

Trait ClipboardSink 

Source
pub trait ClipboardSink:
    Send
    + Sync
    + 'static {
    // Required method
    fn selection(&self, entries: Vec<(String, Vec<u8>)>);
}
Expand description

A consumer of what client applications copy to the compositor’s clipboard.

Required Methods§

Source

fn selection(&self, entries: Vec<(String, Vec<u8>)>)

The flavors of one copy as (mime, bytes) entries: the picture, or the markup and the text beneath it, and a password manager’s hint beside a secret. A client clearing the clipboard hands over no entries.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Fn(Vec<(String, Vec<u8>)>) + Send + Sync + 'static> ClipboardSink for F