Trait tauri_runtime::ClipboardManager [−][src]
pub trait ClipboardManager { fn write_text<T: Into<String>>(&mut self, text: T) -> Result<()>; fn read_text(&self) -> Result<Option<String>>; }
Expand description
Clipboard manager.
Required methods
Writes the text into the clipboard as plain text.
Panics
Panics if the app is not running yet, usually when called on the tauri::Builder#setup
closure.
You can spawn a task to use the API using the tauri::async_runtime
to prevent the panic.