Refactor(Project): Change Project Structure
This commit is contained in:
+9
-4
@@ -1,6 +1,5 @@
|
||||
mod providers;
|
||||
|
||||
// pub use self::providers::Machine;
|
||||
use platforms::{WifiError, WifiInterface};
|
||||
use std::fmt;
|
||||
|
||||
@@ -15,13 +14,19 @@ pub trait WifiHotspot: fmt::Debug + WifiInterface {
|
||||
/// Creates wifi hotspot service for host machine. This only creats the wifi network,
|
||||
/// and isn't responsible for initiating the serving of the wifi network process.
|
||||
/// To begin serving the hotspot, use ```start_hotspot()```.
|
||||
fn create_hotspot(ssid: &str, password: &str) -> Result<bool, WifiHotspotError>;
|
||||
fn create_hotspot(ssid: &str, password: &str) -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
/// Start serving publicly an already created wifi hotspot.
|
||||
fn start_hotspot() -> Result<bool, WifiHotspotError>;
|
||||
fn start_hotspot() -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
/// Stop serving a wifi network.
|
||||
///
|
||||
/// > All users connected will automatically be disconnected.
|
||||
fn stop_hotspot() -> Result<bool, WifiHotspotError>;
|
||||
fn stop_hotspot() -> Result<bool, WifiHotspotError> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user