pub fn handle_mlme_msg(&mut self, msg: fidl_mlme::MlmeRequestMessage) -> Result<(), Error> {
        match msg {
            fidl_mlme::MlmeRequestMessage::StartReq { req } => self.handle_mlme_start_req(req),
            fidl_mlme::MlmeRequestMessage::StopReq { req } => self.handle_mlme_stop_req(req),
            fidl_mlme::MlmeRequestMessage::SetKeysReq { req } => self.handle_mlme_setkeys_req(req),
            fidl_mlme::MlmeRequestMessage::AuthenticateResp { resp } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_auth_resp(&mut self.ctx, resp)
            }
            fidl_mlme::MlmeRequestMessage::DeauthenticateReq { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_deauth_req(&mut self.ctx, req)
            }
            fidl_mlme::MlmeRequestMessage::AssociateResp { resp } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_assoc_resp(&mut self.ctx, resp)
            }
            fidl_mlme::MlmeRequestMessage::DisassociateReq { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_disassoc_req(&mut self.ctx, req)
            }
            fidl_mlme::MlmeRequestMessage::SetControlledPort { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_set_controlled_port_req(req)
            }
            fidl_mlme::MlmeRequestMessage::EapolReq { req } => {
                self.bss.as_ref().ok_or_bss_err()?.handle_mlme_eapol_req(&mut self.ctx, req)
            }
            _ => Err(Error::Status(format!("not supported"), zx::Status::NOT_SUPPORTED)),
        }
        .map_err(|e| {
            error!("error handling MLME message: {}", e);
            e
        })
    }
// Allow until main message loop is in Rust.
Allow until main message loop is in Rust.
Allow until main message loop is in Rust .
pub fn handle_mlme_msg(&mut self, msg: fidl_mlme::MlmeRequestMessage) -> Result<(), Error> {
        match msg {
            fidl_mlme::MlmeRequestMessage::StartReq { req } => self.handle_mlme_start_req(req),
            fidl_mlme::MlmeRequestMessage::StopReq { req } => self.handle_mlme_stop_req(req),
            fidl_mlme::MlmeRequestMessage::SetKeysReq { req } => self.handle_mlme_setkeys_req(req),
            fidl_mlme::MlmeRequestMessage::AuthenticateResp { resp } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_auth_resp(&mut self.ctx, resp)
            }
            fidl_mlme::MlmeRequestMessage::DeauthenticateReq { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_deauth_req(&mut self.ctx, req)
            }
            fidl_mlme::MlmeRequestMessage::AssociateResp { resp } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_assoc_resp(&mut self.ctx, resp)
            }
            fidl_mlme::MlmeRequestMessage::DisassociateReq { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_disassoc_req(&mut self.ctx, req)
            }
            fidl_mlme::MlmeRequestMessage::SetControlledPort { req } => {
                self.bss.as_mut().ok_or_bss_err()?.handle_mlme_set_controlled_port_req(req)
            }
            fidl_mlme::MlmeRequestMessage::EapolReq { req } => {
                self.bss.as_ref().ok_or_bss_err()?.handle_mlme_eapol_req(&mut self.ctx, req)
            }
            _ => Err(Error::Status(format!("not supported"), zx::Status::NOT_SUPPORTED)),
        }
        .map_err(|e| {
            error!("error handling MLME message: {}", e);
            e
        })
    }
pub fn handle_mlme_msg ( & mut self , msg : fidl_mlme :: MlmeRequestMessage ) -> Result < ( ) , Error > { match msg { fidl_mlme :: MlmeRequestMessage :: StartReq { req } => self . handle_mlme_start_req ( req ) , fidl_mlme :: MlmeRequestMessage :: StopReq { req } => self . handle_mlme_stop_req ( req ) , fidl_mlme :: MlmeRequestMessage :: SetKeysReq { req } => self . handle_mlme_setkeys_req ( req ) , fidl_mlme :: MlmeRequestMessage :: AuthenticateResp { resp } => { self . bss . as_mut ( ) . ok_or_bss_err ( ) ? . handle_mlme_auth_resp ( & mut self . ctx , resp ) } fidl_mlme :: MlmeRequestMessage :: DeauthenticateReq { req } => { self . bss . as_mut ( ) . ok_or_bss_err ( ) ? . handle_mlme_deauth_req ( & mut self . ctx , req ) } fidl_mlme :: MlmeRequestMessage :: AssociateResp { resp } => { self . bss . as_mut ( ) . ok_or_bss_err ( ) ? . handle_mlme_assoc_resp ( & mut self . ctx , resp ) } fidl_mlme :: MlmeRequestMessage :: DisassociateReq { req } => { self . bss . as_mut ( ) . ok_or_bss_err ( ) ? . handle_mlme_disassoc_req ( & mut self . ctx , req ) } fidl_mlme :: MlmeRequestMessage :: SetControlledPort { req } => { self . bss . as_mut ( ) . ok_or_bss_err ( ) ? . handle_mlme_set_controlled_port_req ( req ) } fidl_mlme :: MlmeRequestMessage :: EapolReq { req } => { self . bss . as_ref ( ) . ok_or_bss_err ( ) ? . handle_mlme_eapol_req ( & mut self . ctx , req ) } _ => Err ( Error :: Status ( format ! ( " " ) , zx :: Status :: NOT_SUPPORTED ) ) , } . map_err ( | e | { error ! ( " " e ) ; e } ) }
Allow until main message loop is in Rust.
Allow until main message loop is in Rust .
&mut self
msg
fidl_mlme::MlmeRequestMessage