Refactor(Project): Change Project Structure
This commit is contained in:
@@ -1,31 +1,4 @@
|
||||
use hotspot::{WifiHotspot, WifiHotspotError};
|
||||
use platforms::Linux;
|
||||
use hotspot::WifiHotspot;
|
||||
use platforms::WiFi;
|
||||
|
||||
// #[derive(Debug)]
|
||||
// pub struct Linux {
|
||||
// pub name: String,
|
||||
// interface: String,
|
||||
// }
|
||||
|
||||
// impl Linux {
|
||||
// pub fn new(name: &str, interface: Option<&str>) -> Self {
|
||||
// Linux {
|
||||
// name: name.into(),
|
||||
// interface: interface.unwrap_or("wlan0").into(),
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
impl WifiHotspot for Linux {
|
||||
fn create_hotspot(ssid: &str, password: &str) -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
fn start_hotspot() -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
fn stop_hotspot() -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
impl WifiHotspot for WiFi {}
|
||||
|
||||
Reference in New Issue
Block a user