pub trait ClipboardProvider: Sized {
    fn new() -> Result<Self, Box<dyn Error>>;
    fn get_contents(&mut self) -> Result<String, Box<dyn Error>>;
    fn set_contents(&mut self, content: String) -> Result<(), Box<dyn Error>>;
    fn clear(&mut self) -> Result<(), Box<dyn Error>>;
}
Expand description

Trait for clipboard access

Required Methods§

Create a context with which to access the clipboard

Method to get the clipboard contents as a String

Method to set the clipboard contents as a String

Method to clear the clipboard

Implementors§