#[non_exhaustive]pub enum WindowSelector {
Id(u64),
Title(String),
}Expand description
Which of an app’s windows to capture.
Computer::list_windows lists the candidates.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Id(u64)
Title(String)
A window title, matched case-insensitively: an exact match wins, then the first window whose title contains it.
Trait Implementations§
Source§impl Clone for WindowSelector
impl Clone for WindowSelector
Source§impl Debug for WindowSelector
impl Debug for WindowSelector
impl Eq for WindowSelector
Source§impl Hash for WindowSelector
impl Hash for WindowSelector
Source§impl PartialEq for WindowSelector
impl PartialEq for WindowSelector
impl StructuralPartialEq for WindowSelector
Auto Trait Implementations§
impl Forget for WindowSelector
impl Freeze for WindowSelector
impl RefUnwindSafe for WindowSelector
impl Send for WindowSelector
impl Sync for WindowSelector
impl Unpin for WindowSelector
impl UnsafeUnpin for WindowSelector
impl UnwindSafe for WindowSelector
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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