Chore(Docs): Add More Detailed Documentation

This commit is contained in:
Tochukwu Nkemdilim
2018-08-16 23:54:04 +01:00
parent be1064b383
commit 03325c939a
17 changed files with 294 additions and 60 deletions
+3
View File
@@ -6,6 +6,7 @@ pub struct Connection {
pub(crate) ssid: String,
}
/// Wireless network interface for linux operating system.
#[derive(Debug)]
pub struct Linux {
pub(crate) connection: Option<Connection>,
@@ -23,6 +24,8 @@ impl Linux {
}
}
/// Wifi interface for linux operating system.
/// This provides basic functionalities for wifi interface.
impl WifiInterface for Linux {
fn is_wifi_enabled() -> Result<bool, WifiError> {
let output = Command::new("nmcli")