Chore(Docs): Improve Docs
This commit is contained in:
@@ -10,6 +10,7 @@ mod platforms;
|
||||
pub mod prelude {
|
||||
pub use connectivity::*;
|
||||
pub use hotspot::*;
|
||||
pub use platforms::Config;
|
||||
}
|
||||
|
||||
pub use platforms::WiFi;
|
||||
|
||||
@@ -27,7 +27,6 @@ impl Osx {
|
||||
/// Wifi interface for osx operating system.
|
||||
/// This provides basic functionalities for wifi interface.
|
||||
impl WifiInterface for Osx {
|
||||
/// Check if wireless network adapter is enabled.
|
||||
fn is_wifi_enabled() -> Result<bool, WifiError> {
|
||||
let output = Command::new("networksetup")
|
||||
.args(&["radio", "wifi"])
|
||||
@@ -50,7 +49,7 @@ impl WifiInterface for Osx {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Turn off the wireless network adapter.
|
||||
/// Turn off the wireless adapter.
|
||||
fn turn_off() -> Result<(), WifiError> {
|
||||
let output = Command::new("networksetup")
|
||||
.args(&["-setairportpower", "en0", "off"])
|
||||
|
||||
Reference in New Issue
Block a user