// Copyright 2020 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34use base::Event;56use crate::IntoAsync;7use crate::IoSource;89/// An async version of `base::Event`.10pub struct EventAsync {11pub(crate) io_source: IoSource<Event>,12#[cfg(windows)]13pub(crate) reset_after_read: bool,14}1516impl EventAsync {17pub fn get_io_source_ref(&self) -> &IoSource<Event> {18&self.io_source19}20}2122impl IntoAsync for Event {}232425