pub enum Error {
NoForegroundWindow,
ClipboardLocked(Error),
Clipboard(Error),
Alloc(Error),
SendInputBlocked,
FocusChanged,
OwnerWindowFailed,
}Expand description
Failures that are worth distinguishing at the call site.
Variants§
NoForegroundWindow
No foreground window, or it belongs to no process.
ClipboardLocked(Error)
Another process held the clipboard lock across every retry.
Clipboard(Error)
A clipboard call failed after the clipboard was successfully opened.
Alloc(Error)
GlobalAlloc or GlobalLock failed while preparing clipboard data.
SendInputBlocked
SendInput accepted fewer events than submitted. Almost always UIPI.
FocusChanged
Focus moved between capture and injection.
OwnerWindowFailed
The hidden clipboard-owner window could not be created.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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