[−][src]Trait copypasta::ClipboardProvider
Trait for clipboard access
Required methods
fn get_contents(
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
&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>>
&mut self,
_: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
Method to set the clipboard contents as a String
Implementors
impl ClipboardProvider for NopClipboardContext
[src]
fn get_contents(
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
fn set_contents(
&mut self,
_: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self,
_: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
impl ClipboardProvider for Clipboard
[src]
fn get_contents(
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
fn set_contents(
&mut self,
data: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self,
data: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
impl ClipboardProvider for Primary
[src]
fn get_contents(
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self
) -> Result<String, Box<dyn Error + Send + Sync + 'static>>
fn set_contents(
&mut self,
data: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
[src]
&mut self,
data: String
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
impl<S> ClipboardProvider for X11ClipboardContext<S> where
S: Selection,
[src]
S: Selection,