Struct copypasta::Clipboard
[−]
[src]
pub struct Clipboard;
The x11 clipboard
Trait Implementations
impl Load for Clipboard
[src]
type Err = Error
Errors encountered when working with a clipboard. Each implementation is allowed to define its own error type, but it must conform to std error. Read more
fn new() -> Result<Self, Error>
[src]
Create a clipboard
fn load_primary(&self) -> Result<String, Self::Err>
[src]
Get the primary clipboard contents.
fn load_selection(&self) -> Result<String, Self::Err>
[src]
Get the clipboard selection contents. Read more
fn load(&self, buffer: Buffer) -> Result<String, Self::Err>
[src]
impl Store for Clipboard
[src]
fn store_primary<S>(&mut self, contents: S) -> Result<(), Self::Err> where
S: Into<String>,
[src]
S: Into<String>,
Sets the primary clipboard contents
fn store_selection<S>(&mut self, contents: S) -> Result<(), Self::Err> where
S: Into<String>,
[src]
S: Into<String>,
Sets the secondary clipboard contents
fn store<S>(&mut self, contents: S, buffer: Buffer) -> Result<(), Self::Err> where
S: Into<String>,
[src]
S: Into<String>,
Store into the specified buffer
.