pub trait ClipboardProvider: Send {
    // Required methods
    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§

source

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

Method to get the clipboard contents as a String

source

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

Method to set the clipboard contents as a String

Implementors§