pub struct ActiveWindowEventData<'a> { /* private fields */ }Expand description
Active window event data.
NOW-PROTO: NOW_WINDOW_REC_EVENT_ACTIVE_WINDOW
Implementations§
Source§impl ActiveWindowEventData<'_>
impl ActiveWindowEventData<'_>
Sourcepub fn process_id(&self) -> u32
pub fn process_id(&self) -> u32
Get the process ID of the active window.
Sourcepub fn executable_path(&self) -> &str
pub fn executable_path(&self) -> &str
Get the executable path.
Trait Implementations§
Source§impl<'a> Clone for ActiveWindowEventData<'a>
impl<'a> Clone for ActiveWindowEventData<'a>
Source§fn clone(&self) -> ActiveWindowEventData<'a>
fn clone(&self) -> ActiveWindowEventData<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ActiveWindowEventData<'a>
impl<'a> Debug for ActiveWindowEventData<'a>
Source§impl IntoOwned for ActiveWindowEventData<'_>
impl IntoOwned for ActiveWindowEventData<'_>
Source§type Owned = ActiveWindowEventData<'static>
type Owned = ActiveWindowEventData<'static>
The resulting type after obtaining ownership.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Creates owned data from data.
Source§impl<'a> PartialEq for ActiveWindowEventData<'a>
impl<'a> PartialEq for ActiveWindowEventData<'a>
impl<'a> Eq for ActiveWindowEventData<'a>
impl<'a> StructuralPartialEq for ActiveWindowEventData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ActiveWindowEventData<'a>
impl<'a> RefUnwindSafe for ActiveWindowEventData<'a>
impl<'a> Send for ActiveWindowEventData<'a>
impl<'a> Sync for ActiveWindowEventData<'a>
impl<'a> Unpin for ActiveWindowEventData<'a>
impl<'a> UnwindSafe for ActiveWindowEventData<'a>
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