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
@@ -4,17 +4,21 @@ use self::tempfile::NamedTempFile;
use connectivity::stubs::windows_wifi_profile;
use std::{io, io::Write};
/// A netowork XML handler for windows, responsible creating
/// disposable xml profiles files.
pub(crate) struct NetworkXmlProfileHandler {
pub content: String,
}
impl NetworkXmlProfileHandler {
/// Create a new xml profile handler for windows.
pub fn new() -> Self {
NetworkXmlProfileHandler {
content: NetworkXmlProfileHandler::read_from_stub(),
}
}
/// Generate a sample templated xml profile.
pub fn read_from_stub() -> String {
windows_wifi_profile::get_wifi_profile()
}