Trait copypasta::ClipboardProvider
source · [−]pub trait ClipboardProvider: Send {
fn get_contents(
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>;
fn set_contents(
&mut self,
_: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>;
}
Expand description
Trait for clipboard access
Required Methods
Method to get the clipboard contents as a String