pub enum MonitorMatch {
Found(usize),
Changed(usize),
Missing,
}Expand description
How a saved MonitorRecord resolved against the displays attached
now. Both non-Missing variants carry an index into the candidate
slice that was searched.
Variants§
Found(usize)
Same display, same geometry — safe to relocate against.
Changed(usize)
A display of that name is attached, but its size or scale moved.
Kept distinct from Missing so the caller can say what changed
instead of “not attached”, which would send the user hunting for a
cable when the real cause was a resolution change.
Missing
Nothing attached carries that name.
Trait Implementations§
Source§impl Clone for MonitorMatch
impl Clone for MonitorMatch
Source§fn clone(&self) -> MonitorMatch
fn clone(&self) -> MonitorMatch
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 MonitorMatch
Source§impl Debug for MonitorMatch
impl Debug for MonitorMatch
impl Eq for MonitorMatch
Source§impl PartialEq for MonitorMatch
impl PartialEq for MonitorMatch
impl StructuralPartialEq for MonitorMatch
Auto Trait Implementations§
impl Freeze for MonitorMatch
impl RefUnwindSafe for MonitorMatch
impl Send for MonitorMatch
impl Sync for MonitorMatch
impl Unpin for MonitorMatch
impl UnsafeUnpin for MonitorMatch
impl UnwindSafe for MonitorMatch
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.