[][src]Trait cli_clipboard::ClipboardProvider

pub trait ClipboardProvider: Sized {
    fn new() -> Result<Self>;
fn get_contents(&mut self) -> Result<String>;
fn set_contents(&mut self, content: String) -> Result<()>;
fn clear(&mut self) -> Result<()>; }

Trait for clipboard access

Required methods

fn new() -> Result<Self>

Create a context with which to access the clipboard

fn get_contents(&mut self) -> Result<String>

Method to get the clipboard contents as a String

fn set_contents(&mut self, content: String) -> Result<()>

Method to set the clipboard contents as a String

fn clear(&mut self) -> Result<()>

Method to clear the clipboard

Loading content...

Implementors

impl ClipboardProvider for WindowsClipboardContext[src]

Loading content...