vpncloud/src/poll/mod.rs

19 lines
410 B
Rust
Raw Normal View History

2017-07-22 14:49:53 +00:00
// VpnCloud - Peer-to-Peer VPN
2021-02-08 09:11:20 +00:00
// Copyright (C) 2015-2021 Dennis Schwerdel
2017-07-22 14:49:53 +00:00
// This software is licensed under GPL-3 or newer (see LICENSE.md)
2016-06-30 08:05:37 +00:00
#[cfg(any(target_os = "linux", target_os = "android"))]
mod epoll;
#[cfg(any(target_os = "linux", target_os = "android"))]
2019-02-21 21:41:36 +00:00
pub use self::epoll::EpollWait as WaitImpl;
use std::io;
pub enum WaitResult {
Timeout,
Socket,
2019-02-21 21:41:36 +00:00
Device,
2021-04-06 10:28:31 +00:00
Error(io::Error),
2019-12-04 08:32:35 +00:00
}