2017-07-22 14:49:53 +00:00
|
|
|
// VpnCloud - Peer-to-Peer VPN
|
2019-02-19 21:04:21 +00:00
|
|
|
// Copyright (C) 2015-2019 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,
|
2020-02-20 15:25:35 +00:00
|
|
|
Socket,
|
2019-02-21 21:41:36 +00:00
|
|
|
Device,
|
|
|
|
Error(io::Error)
|
2019-12-04 08:32:35 +00:00
|
|
|
}
|