[][src]Trait copypasta::ClipboardProvider

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>>; }

Trait for clipboard access

Required methods

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

Method to get the clipboard contents as a String

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

Method to set the clipboard contents as a String

Loading content...

Implementors

impl ClipboardProvider for NopClipboardContext[src]

impl ClipboardProvider for Clipboard[src]

impl ClipboardProvider for Primary[src]

impl<S> ClipboardProvider for X11ClipboardContext<S> where
    S: Selection
[src]

Loading content...