Skip to main content

SelectionWatch

Trait SelectionWatch 

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

A consumer of the selection changes of an application compositor watched over its own socket (ScreenCapture::clipboard_watch_app).

Required Methods§

Source

fn mimes(&self, mimes: Vec<String>)

The mime types the new selection offers, none for a cleared selection.

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>) + Send + Sync + 'static> SelectionWatch for F