pub enum Action {
Read {
target: Kind,
channel: Sender<Option<String>>,
},
Write {
target: Kind,
contents: String,
},
}
Expand description
A clipboard action to be performed by some Task
.
Variants§
Read
Read the clipboard and produce T
with the result.
Fields
§
target: Kind
The clipboard target.
Write
Write the given contents to the clipboard.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl !RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl !UnwindSafe 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