use win_events::{EventGuard, ManualResetEvent}; #[test] fn test_event_guard() { let event = ManualResetEvent::new(false); assert!(!event.is_set()); let event_guard = EventGuard::new(&event); assert!(event.is_set()); drop(event_guard); assert!(!event.is_set()); }