wlan_fullmac_mlme::device

Trait DeviceOps

Source
pub trait DeviceOps {
Show 23 methods // Required methods fn init( &mut self, fullmac_ifc_client_end: ClientEnd<WlanFullmacImplIfcMarker>, ) -> Result<Channel, Status>; fn query_device_info(&self) -> Result<WlanFullmacImplQueryResponse>; fn query_mac_sublayer_support(&self) -> Result<MacSublayerSupport>; fn query_security_support(&self) -> Result<SecuritySupport>; fn query_spectrum_management_support( &self, ) -> Result<SpectrumManagementSupport>; fn start_scan(&self, req: WlanFullmacImplStartScanRequest) -> Result<()>; fn connect(&self, req: WlanFullmacImplConnectRequest) -> Result<()>; fn reconnect(&self, req: WlanFullmacImplReconnectRequest) -> Result<()>; fn roam(&self, req: WlanFullmacImplRoamRequest) -> Result<()>; fn auth_resp(&self, resp: WlanFullmacImplAuthRespRequest) -> Result<()>; fn deauth(&self, req: WlanFullmacImplDeauthRequest) -> Result<()>; fn assoc_resp(&self, resp: WlanFullmacImplAssocRespRequest) -> Result<()>; fn disassoc(&self, req: WlanFullmacImplDisassocRequest) -> Result<()>; fn start_bss(&self, req: WlanFullmacImplStartBssRequest) -> Result<()>; fn stop_bss(&self, req: WlanFullmacImplStopBssRequest) -> Result<()>; fn set_keys( &self, req: WlanFullmacImplSetKeysRequest, ) -> Result<WlanFullmacSetKeysResp>; fn eapol_tx(&self, req: WlanFullmacImplEapolTxRequest) -> Result<()>; fn get_iface_counter_stats(&self) -> Result<GetIfaceCounterStatsResponse>; fn get_iface_histogram_stats( &self, ) -> Result<GetIfaceHistogramStatsResponse>; fn sae_handshake_resp( &self, resp: WlanFullmacImplSaeHandshakeRespRequest, ) -> Result<()>; fn sae_frame_tx(&self, frame: SaeFrame) -> Result<()>; fn wmm_status_req(&self) -> Result<()>; fn on_link_state_changed( &self, req: WlanFullmacImplOnLinkStateChangedRequest, ) -> Result<()>;
}
Expand description

This trait abstracts how Device accomplish operations. Test code can then implement trait methods instead of mocking an underlying DeviceInterface and FIDL proxy.

Required Methods§

Source

fn init( &mut self, fullmac_ifc_client_end: ClientEnd<WlanFullmacImplIfcMarker>, ) -> Result<Channel, Status>

Source

fn query_device_info(&self) -> Result<WlanFullmacImplQueryResponse>

Source

fn query_mac_sublayer_support(&self) -> Result<MacSublayerSupport>

Source

fn query_security_support(&self) -> Result<SecuritySupport>

Source

fn query_spectrum_management_support(&self) -> Result<SpectrumManagementSupport>

Source

fn start_scan(&self, req: WlanFullmacImplStartScanRequest) -> Result<()>

Source

fn connect(&self, req: WlanFullmacImplConnectRequest) -> Result<()>

Source

fn reconnect(&self, req: WlanFullmacImplReconnectRequest) -> Result<()>

Source

fn roam(&self, req: WlanFullmacImplRoamRequest) -> Result<()>

Source

fn auth_resp(&self, resp: WlanFullmacImplAuthRespRequest) -> Result<()>

Source

fn deauth(&self, req: WlanFullmacImplDeauthRequest) -> Result<()>

Source

fn assoc_resp(&self, resp: WlanFullmacImplAssocRespRequest) -> Result<()>

Source

fn disassoc(&self, req: WlanFullmacImplDisassocRequest) -> Result<()>

Source

fn start_bss(&self, req: WlanFullmacImplStartBssRequest) -> Result<()>

Source

fn stop_bss(&self, req: WlanFullmacImplStopBssRequest) -> Result<()>

Source

fn set_keys( &self, req: WlanFullmacImplSetKeysRequest, ) -> Result<WlanFullmacSetKeysResp>

Source

fn eapol_tx(&self, req: WlanFullmacImplEapolTxRequest) -> Result<()>

Source

fn get_iface_counter_stats(&self) -> Result<GetIfaceCounterStatsResponse>

Source

fn get_iface_histogram_stats(&self) -> Result<GetIfaceHistogramStatsResponse>

Source

fn sae_handshake_resp( &self, resp: WlanFullmacImplSaeHandshakeRespRequest, ) -> Result<()>

Source

fn sae_frame_tx(&self, frame: SaeFrame) -> Result<()>

Source

fn wmm_status_req(&self) -> Result<()>

Implementors§