AutoclipPlugin

Trait AutoclipPlugin 

Source
pub trait AutoclipPlugin {
    // Required method
    fn on_clip(&self, contents: &str) -> Option<String>;
}
Expand description

Plugins must implement this trait. This trait is used to trigger events from the app.

Required Methods§

Source

fn on_clip(&self, contents: &str) -> Option<String>

This event will be triggered when the content of the clipboard is updated. If the plugin does not perform any modification for the content, this function must return None, instead of Some(contents.to_string()) .

Implementors§