pub enum Action {
Read {
kind: Kind,
channel: Sender<Result<Content, Error>>,
},
Write {
content: Content,
channel: Sender<Result<(), Error>>,
},
ReadPrimary {
channel: Sender<Result<String, Error>>,
},
WritePrimary {
text: String,
channel: Sender<Result<(), Error>>,
},
}Expand description
A clipboard action to be performed by some Task.
Variants§
Read
Read the clipboard and produce T with the result.
Fields
Write
Write the given contents to the clipboard.
Fields
ReadPrimary
Read the primary selection and produce T with the result.
WritePrimary
Publish the given text as the primary selection.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Action
impl !UnwindSafe for Action
impl Freeze for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more