ClipboardProvider

Trait ClipboardProvider 

Source
pub trait ClipboardProvider: Send {
    // Required methods
    fn get_contents(&mut self) -> Result<String, Box<dyn Error + Sync + Send>>;
    fn set_contents(
        &mut self,
        _: String,
    ) -> Result<(), Box<dyn Error + Sync + Send>>;
}
Expand description

Trait for clipboard access

Required Methods§

Source

fn get_contents(&mut self) -> Result<String, Box<dyn Error + Sync + Send>>

Method to get the clipboard contents as a String

Source

fn set_contents( &mut self, _: String, ) -> Result<(), Box<dyn Error + Sync + Send>>

Method to set the clipboard contents as a String

Implementors§