pub enum Outcome {
Pasted {
read_confirmed: bool,
},
Typed,
ClipboardOnly(ClipboardOnlyReason),
}Expand description
What actually happened, so the caller can tell the user the truth.
Variants§
Pasted
A paste chord was sent.
read_confirmed is true only when the target was observed reading the clipboard, which
delayed rendering makes knowable. When it is false the paste may not have landed — worth
surfacing rather than assuming success, which is what every other tool does.
Typed
Text was typed directly into the target.
ClipboardOnly(ClipboardOnlyReason)
Text is on the clipboard but was not delivered; the user must paste it.
Implementations§
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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