pub trait ClipboardManager: Debug + Clone + Send + Sync {
    // Required methods
    fn write_text<T>(&mut self, text: T) -> Result<(), Error>
       where T: Into<String>;
    fn read_text(&self) -> Result<Option<String>, Error>;
}
Available on crate feature clipboard only.
Expand description

Clipboard manager.

Required Methods§

source

fn write_text<T>(&mut self, text: T) -> Result<(), Error>where T: Into<String>,

Writes the text into the clipboard as plain text.

source

fn read_text(&self) -> Result<Option<String>, Error>

Read the content in the clipboard as plain text.

Implementors§