pub enum NormalizeError {
Outside {
x: i32,
y: i32,
desktop: VirtualDesktop,
},
Empty {
desktop: VirtualDesktop,
},
}Expand description
Why a point could not be expressed as an absolute mouse event.
Both variants are refusals. Windows clamps an out-of-range absolute coordinate to the edge of the desktop and clicks there, which is the one outcome this tool exists to prevent — a click that lands somewhere plausible and wrong is worse than a run that stops.
Variants§
Outside
The point is not on this machine’s desktop. The usual cause is a session captured on a different machine, or on this one before a monitor was unplugged or rearranged.
Empty
Windows reported a desktop with no pixels in it, which happens when there is no attached display — a headless server, or an RDP session that has been disconnected rather than logged out.
Fields
§
desktop: VirtualDesktopTrait Implementations§
Source§impl Clone for NormalizeError
impl Clone for NormalizeError
Source§fn clone(&self) -> NormalizeError
fn clone(&self) -> NormalizeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NormalizeError
Source§impl Debug for NormalizeError
impl Debug for NormalizeError
Source§impl Display for NormalizeError
impl Display for NormalizeError
impl Eq for NormalizeError
Source§impl Error for NormalizeError
impl Error for NormalizeError
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()
Source§impl PartialEq for NormalizeError
impl PartialEq for NormalizeError
impl StructuralPartialEq for NormalizeError
Auto Trait Implementations§
impl Freeze for NormalizeError
impl RefUnwindSafe for NormalizeError
impl Send for NormalizeError
impl Sync for NormalizeError
impl Unpin for NormalizeError
impl UnsafeUnpin for NormalizeError
impl UnwindSafe for NormalizeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.