Trait clipboard::ClipboardProvider [−][src]
pub trait ClipboardProvider: Sized { fn new() -> Result<Self, Box<Error>>; fn get_contents(&mut self) -> Result<String, Box<Error>>; fn set_contents(&mut self, _: String) -> Result<(), Box<Error>>; }
Trait for clipboard access
Required Methods
fn new() -> Result<Self, Box<Error>>
Create a context with which to access the clipboard
fn get_contents(&mut self) -> Result<String, Box<Error>>
Method to get the clipboard contents as a String
fn set_contents(&mut self, _: String) -> Result<(), Box<Error>>
Method to set the clipboard contents as a String
Implementors
impl ClipboardProvider for WindowsClipboardContext
impl ClipboardProvider for NopClipboardContext