From cb161ba6c234c8e03bb8bded8cff7a02c54a0afd Mon Sep 17 00:00:00 2001 From: Tochukwu Nkemdilim Date: Tue, 10 Jul 2018 13:53:38 +0100 Subject: [PATCH] Feat(OSX): Add OSX Support --- src/connectivity/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/connectivity/mod.rs b/src/connectivity/mod.rs index 55f36a9..0b27db5 100644 --- a/src/connectivity/mod.rs +++ b/src/connectivity/mod.rs @@ -15,6 +15,9 @@ pub trait Network: fmt::Debug { fn is_wifi_enabled(&self) -> bool; fn connnection_up(&self) -> bool; fn connnection_down(&self) -> bool; + + // Hotspot + // fn create_hotspot(&self, ssid: &str, password: &str) -> Result; } // #[derive(Debug)] @@ -41,6 +44,10 @@ pub enum WifiConnectionError { WiFiInterfaceDisabled, } +pub enum WifiHotspotError { + CreationFailed, +} + impl From for WifiConnectionError { fn from(error: io::Error) -> Self { WifiConnectionError::IoError(error)