pub enum PlaceError {
OutsideEveryMonitor {
x: i32,
y: i32,
},
NoRegionForMonitor {
monitor: usize,
},
AmbiguousRegion {
monitor: usize,
matches: usize,
},
}Expand description
Why a physical point could not be placed in any granted region.
Every variant is a refusal. There is deliberately no “closest region” fallback: the whole promise of this tool is that a click lands where a human marked it, and a near miss breaks that promise silently.
Variants§
OutsideEveryMonitor
The point is in a gap between monitors, or off the desktop.
NoRegionForMonitor
Nothing was granted that looks like the monitor the point is on — the usual cause is consenting to share one screen of several.
AmbiguousRegion
More than one granted region matches the monitor, so choosing one would be a guess.
Trait Implementations§
Source§impl Clone for PlaceError
impl Clone for PlaceError
Source§fn clone(&self) -> PlaceError
fn clone(&self) -> PlaceError
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 moreSource§impl Debug for PlaceError
impl Debug for PlaceError
Source§impl Display for PlaceError
impl Display for PlaceError
Source§impl Error for PlaceError
impl Error for PlaceError
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 PlaceError
impl PartialEq for PlaceError
impl StructuralPartialEq for PlaceError
Auto Trait Implementations§
impl Freeze for PlaceError
impl RefUnwindSafe for PlaceError
impl Send for PlaceError
impl Sync for PlaceError
impl Unpin for PlaceError
impl UnsafeUnpin for PlaceError
impl UnwindSafe for PlaceError
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