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.