audio_device/windows/mod.rs
1//! Shared helpers for windows programming.
2
3use windows_sys::Windows::Win32::SystemServices as ss;
4mod event;
5pub use self::event::Event;
6
7cfg_events_driver! {
8 #[doc(inherit)]
9 pub use crate::runtime::events::AsyncEvent;
10}
11
12/// Trait that indicates a type that encapsulates an event.
13pub trait RawEvent {
14 /// Access the underlying raw handle for the event.
15 ///
16 /// # Safety
17 ///
18 /// Caller must ensure that the raw handle stays alive for the duration of
19 /// whatever its being associated with.
20 unsafe fn raw_event(&self) -> ss::HANDLE;
21}