diff --git a/ctru-rs/src/services/ac.rs b/ctru-rs/src/services/ac.rs index 345a27e8..3c1573a9 100644 --- a/ctru-rs/src/services/ac.rs +++ b/ctru-rs/src/services/ac.rs @@ -89,8 +89,9 @@ impl Ac { } } - /// Returns whether the console is connected to Wi-Fi + /// Returns the [SecurityMode] of the currently connected network, or error if the console isn't connected to any network. /// + /// You can check if the console is connected to a network using [`Ac::get_wifi_status()`] /// # Example /// /// ``` @@ -102,6 +103,10 @@ impl Ac { /// /// let ac = Ac::new()?; /// + /// if ac.get_wifi_status() { + /// println!("Network security: {:?}"); + /// } + /// /// # /// # Ok(()) /// # } @@ -119,7 +124,7 @@ impl Ac { /// Returns the SSID of the Wi-Fi network the console is connected to, or error if the console isn't connected to any network. /// - /// You can check if the console is connected to a network using [`Self::get_wifi_status()`] + /// You can check if the console is connected to a network using [`Ac::get_wifi_status()`] /// /// # Example /// @@ -180,7 +185,7 @@ impl Ac { /// Returns the connected network's proxy port, if present. /// - /// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`] + /// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`] /// /// # Example /// @@ -210,7 +215,7 @@ impl Ac { /// Returns the connected network's proxy username, if present. /// - /// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`] + /// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`] /// /// # Example /// @@ -242,7 +247,7 @@ impl Ac { /// Returns the connected network's proxy password, if present. /// - /// You can check if the console is using a proxy with [`Self::get_proxy_enabled()`] + /// You can check if the console is using a proxy with [`Ac::get_proxy_enabled()`] /// /// # Example ///