pub struct WindowObserver(/* private fields */);Expand description
Observes window events.
Implementations§
Source§impl WindowObserver
impl WindowObserver
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>
Creates a new WindowObserver for a given process ID and event channel
and start the observer.
Sourcepub fn inner(&self) -> &PlatformWindowObserver
pub fn inner(&self) -> &PlatformWindowObserver
Returns underlying platform-specific observer.
Auto Trait Implementations§
impl Freeze for WindowObserver
impl !RefUnwindSafe for WindowObserver
impl Send for WindowObserver
impl Sync for WindowObserver
impl Unpin for WindowObserver
impl !UnwindSafe for WindowObserver
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