Browse Source

add docs to struct

pull/140/head
Lena 1 year ago committed by Lena
parent
commit
2e494acbce
No known key found for this signature in database
GPG Key ID: 5A940B96C2DA3683
  1. 27
      ctru-rs/src/services/ac.rs

27
ctru-rs/src/services/ac.rs

@ -1,4 +1,6 @@
use crate::error::ResultCode; use crate::error::ResultCode;
/// Handle to the AC service, that handles Wi-Fi and network settings.
pub struct Ac(()); pub struct Ac(());
impl Ac { impl Ac {
@ -306,15 +308,24 @@ impl Drop for Ac {
#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u32)] #[repr(u32)]
#[non_exhaustive] #[non_exhaustive]
/// Represents all the supported Wi-Fi security modes.
pub enum SecurityMode { pub enum SecurityMode {
Open = 0, /// No authentication
WEP40Bit = 1, Open = ctru_sys::AC_OPEN,
WEP104Bit = 2, /// WEP 40bit authentication
WEP128Bit = 3, WEP40Bit = ctru_sys::AC_WEP_40BIT,
WPA_TKIP = 4, /// WEP 104bit authentication
WPA2_TKIP = 5, WEP104Bit = ctru_sys::AC_WEP_104BIT,
WPA_AES = 6, /// WEP 128bit authentication
WPA2_AES = 7, WEP128Bit = ctru_sys::AC_WEP_128BIT,
/// WPA-TKIP authentication
WPA_TKIP = ctru_sys::AC_WPA_TKIP,
/// WPA2-TKIP authentication
WPA2_TKIP = ctru_sys::AC_WPA2_TKIP,
/// WPA-AES authentication
WPA_AES = ctru_sys::AC_WPA_AES,
/// WPA2-AES authentication
WPA2_AES = ctru_sys::AC_WPA2_AES,
} }
/* /*

Loading…
Cancel
Save