Trait wlan_rsn::auth::psk::ToPsk

source ·
pub trait ToPsk {
    // Required method
    fn to_psk(&self, ssid: &Ssid) -> CommonPsk;
}
Expand description

Conversion of WPA credentials to a PSK.

Required Methods§

source

fn to_psk(&self, ssid: &Ssid) -> CommonPsk

Implementations on Foreign Types§

source§

impl ToPsk for Wpa1Credentials

Conversion of WPA1 credentials to a PSK.

RSN specifies that PSKs are used as-is and passphrases are transformed into a PSK. This implementation performs this transformation when necessary for WPA1 credentials.

source§

fn to_psk(&self, ssid: &Ssid) -> CommonPsk

source§

impl ToPsk for Wpa2PersonalCredentials

Conversion of WPA2 Personal credentials to a PSK.

RSN specifies that PSKs are used as-is and passphrases are transformed into a PSK. This implementation performs this transformation when necessary for WPA2 Personal credentials.

source§

fn to_psk(&self, ssid: &Ssid) -> CommonPsk

Implementors§