pub enum WifiRequest {
RegisterEventCallback {
payload: WifiRegisterEventCallbackRequest,
control_handle: WifiControlHandle,
},
Start {
responder: WifiStartResponder,
},
Stop {
responder: WifiStopResponder,
},
GetState {
responder: WifiGetStateResponder,
},
GetChipIds {
responder: WifiGetChipIdsResponder,
},
GetChip {
payload: WifiGetChipRequest,
responder: WifiGetChipResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: WifiControlHandle,
method_type: MethodType,
},
}Variants§
RegisterEventCallback
Register a callback to be notified of future events (such when WiFi has started or stopped)
Start
Start WiFi. If this operation is not successful, return an error status.
If this operation is successful, the started state is now true and all
registered callbacks will be notified with an OnStart event.
Fields
responder: WifiStartResponderStop
Stop WiFi. If this operation is not successful, return an error status.
If this operation is successful, the started state is now false and all
registered callbacks will be notified with an OnStop event.
Fields
responder: WifiStopResponderGetState
Return a boolean based on whether WiFi is started or not.
Fields
responder: WifiGetStateResponderGetChipIds
Get the IDs of all the WiFi chips on the device.
Fields
responder: WifiGetChipIdsResponderGetChip
Register the channel to make request to the WifiChip with the given
chip_id
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: WifiControlHandlemethod_type: MethodTypeImplementations§
Source§impl WifiRequest
impl WifiRequest
pub fn into_register_event_callback( self, ) -> Option<(WifiRegisterEventCallbackRequest, WifiControlHandle)>
pub fn into_start(self) -> Option<WifiStartResponder>
pub fn into_stop(self) -> Option<WifiStopResponder>
pub fn into_get_state(self) -> Option<WifiGetStateResponder>
pub fn into_get_chip_ids(self) -> Option<WifiGetChipIdsResponder>
pub fn into_get_chip(self) -> Option<(WifiGetChipRequest, WifiGetChipResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL