tauri_runtime

Trait ClipboardManager

Source
pub trait ClipboardManager:
    Debug
    + Clone
    + Send
    + Sync {
    // Required methods
    fn write_text<T: Into<String>>(&mut self, text: T) -> Result<()>;
    fn read_text(&self) -> Result<Option<String>>;
}
Expand description

Clipboard manager.

Required Methods§

Source

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

Writes the text into the clipboard as plain text.

Source

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

Read the content in the clipboard as plain text.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§