Struct wlan_rsn::Supplicant
source · pub struct Supplicant {
pub auth_cfg: Config,
/* private fields */
}
Fields§
§auth_cfg: Config
Implementations§
source§impl Supplicant
impl Supplicant
sourcepub fn new_wpa_personal(
nonce_rdr: Arc<NonceReader>,
auth_cfg: Config,
s_addr: MacAddr,
s_protection: ProtectionInfo,
a_addr: MacAddr,
a_protection: ProtectionInfo,
) -> Result<Supplicant, Error>
pub fn new_wpa_personal( nonce_rdr: Arc<NonceReader>, auth_cfg: Config, s_addr: MacAddr, s_protection: ProtectionInfo, a_addr: MacAddr, a_protection: ProtectionInfo, ) -> Result<Supplicant, Error>
WPA personal supplicant which supports 4-Way- and Group-Key Handshakes.
pub fn start(&mut self, update_sink: &mut UpdateSink) -> Result<(), Error>
pub fn reset(&mut self)
pub fn on_eapol_frame<B: SplitByteSlice>( &mut self, update_sink: &mut UpdateSink, frame: Frame<B>, ) -> Result<(), Error>
pub fn on_eapol_conf( &mut self, update_sink: &mut UpdateSink, result: EapolResultCode, ) -> Result<(), Error>
pub fn on_rsna_retransmission_timeout( &mut self, update_sink: &mut UpdateSink, ) -> Result<(), Error>
sourcepub fn incomplete_reason(&self) -> Error
pub fn incomplete_reason(&self) -> Error
Can be called at anytime to determine the reason why the RSNA is not complete. This is normally called when the higher layer, usually SME, determines establishing the RSNA failed, likely because of an expired timeout.
pub fn on_pmk_available( &mut self, update_sink: &mut UpdateSink, pmk: &[u8], pmkid: &[u8], ) -> Result<(), Error>
pub fn on_sae_handshake_ind( &mut self, update_sink: &mut UpdateSink, ) -> Result<(), Error>
pub fn on_sae_frame_rx( &mut self, update_sink: &mut UpdateSink, frame: SaeFrame, ) -> Result<(), Error>
pub fn on_sae_timeout( &mut self, update_sink: &mut UpdateSink, event_id: u64, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Supplicant
impl !RefUnwindSafe for Supplicant
impl Send for Supplicant
impl !Sync for Supplicant
impl Unpin for Supplicant
impl !UnwindSafe for Supplicant
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