feat: load raw clipboard data

This commit is contained in:
Ashley Wulber 2024-03-14 15:46:52 -04:00
parent 23ac0ffc5b
commit 3118f11b03
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 31 additions and 5 deletions

View file

@ -1,3 +1,4 @@
use std::borrow::Cow;
use std::io::{Error, ErrorKind, Result};
use std::sync::mpsc::Sender;
@ -29,7 +30,7 @@ pub fn spawn(
/// Clipboard worker thread command.
pub enum Command {
/// Loads data for the first available mime type in the provided list.
Load(Vec<MimeType>, SelectionTarget),
Load(Cow<'static, [MimeType]>, SelectionTarget),
/// Store Data with the given mime types.
Store(Box<dyn AsMimeTypes + Send>, SelectionTarget),
/// Shutdown the worker.