Trait tauri_runtime::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.

Object Safety§

This trait is not object safe.

Implementors§