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)