pub enum SecurityType {
Open,
Wep,
WpaPsk,
Wpa2Psk,
Wpa3Psk,
Enterprise,
Unknown(String),
}Expand description
Security type of a WiFi network.
This enum represents the various WiFi security protocols that may be encountered when scanning networks.
§Example
use rpi_host::SecurityType;
let security = SecurityType::from("WPA2");
assert!(matches!(security, SecurityType::Wpa2Psk));Variants§
Open
Open network with no security. Anyone can connect.
Wep
WEP encryption. Legacy and insecure - avoid if possible.
WpaPsk
WPA Personal (PSK). Older but still common.
Wpa2Psk
WPA2 Personal. Currently the most common security type.
Wpa3Psk
WPA3 Personal. Newest and most secure.
Enterprise
WPA/WPA2/WPA3 Enterprise (802.1X). Requires username/password or certificate.
Unknown(String)
Unknown or unrecognized security type.
Trait Implementations§
Source§impl Clone for SecurityType
impl Clone for SecurityType
Source§fn clone(&self) -> SecurityType
fn clone(&self) -> SecurityType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityType
impl Debug for SecurityType
Source§impl Display for SecurityType
impl Display for SecurityType
Source§impl From<&str> for SecurityType
impl From<&str> for SecurityType
Source§impl PartialEq for SecurityType
impl PartialEq for SecurityType
impl Eq for SecurityType
impl StructuralPartialEq for SecurityType
Auto Trait Implementations§
impl Freeze for SecurityType
impl RefUnwindSafe for SecurityType
impl Send for SecurityType
impl Sync for SecurityType
impl Unpin for SecurityType
impl UnwindSafe for SecurityType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more