pub enum Target {
Display(usize),
WindowTitled(String),
}Expand description
What to capture: a display by index, or a window matched by exact title.
Construction is infallible — a matching window need not exist yet (it may
appear later and reattach). Resolution failure surfaces at capture time as
CaptureError::TargetNotFound.
Variants§
Display(usize)
The Nth display reported by the platform (0 = first).
WindowTitled(String)
The first window whose title matches exactly.
Implementations§
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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