pub struct WindowsWindowObserver { /* private fields */ }Available on Windows only.
Expand description
Observes window events on the Windows platform by using wineventhook.
Implementations§
Source§impl WindowsWindowObserver
impl WindowsWindowObserver
Sourcepub async fn start(
pid: u32,
event_tx: EventTx,
event_filter: EventFilter,
) -> Result<Self, Error>
pub async fn start( pid: u32, event_tx: EventTx, event_filter: EventFilter, ) -> Result<Self, Error>
Starts observing window events for a specific process ID.
Sourcepub fn hook(&self) -> &WindowEventHook
pub fn hook(&self) -> &WindowEventHook
Retrieves the underlying WindowEventHook.
Auto Trait Implementations§
impl Freeze for WindowsWindowObserver
impl !RefUnwindSafe for WindowsWindowObserver
impl Send for WindowsWindowObserver
impl Sync for WindowsWindowObserver
impl Unpin for WindowsWindowObserver
impl !UnwindSafe for WindowsWindowObserver
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