Trait cli_clipboard::ClipboardProvider
source · 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§
sourcefn get_contents(&mut self) -> Result<String, Box<dyn Error>>
fn get_contents(&mut self) -> Result<String, Box<dyn Error>>
Method to get the clipboard contents as a String