pub struct WifiSynchronousProxy { /* private fields */ }
Implementations§
Source§impl WifiSynchronousProxy
impl WifiSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<WifiEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<WifiEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn register_event_callback(
&self,
payload: WifiRegisterEventCallbackRequest,
) -> Result<(), Error>
pub fn register_event_callback( &self, payload: WifiRegisterEventCallbackRequest, ) -> Result<(), Error>
Register a callback to be notified of future events (such when WiFi has started or stopped)
Sourcepub fn start(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiStartResult, Error>
pub fn start( &self, ___deadline: MonotonicInstant, ) -> Result<WifiStartResult, Error>
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.
Sourcepub fn stop(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiStopResult, Error>
pub fn stop( &self, ___deadline: MonotonicInstant, ) -> Result<WifiStopResult, Error>
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.
Sourcepub fn get_state(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiGetStateResponse, Error>
pub fn get_state( &self, ___deadline: MonotonicInstant, ) -> Result<WifiGetStateResponse, Error>
Return a boolean based on whether WiFi is started
or not.
Sourcepub fn get_chip_ids(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiGetChipIdsResponse, Error>
pub fn get_chip_ids( &self, ___deadline: MonotonicInstant, ) -> Result<WifiGetChipIdsResponse, Error>
Get the IDs of all the WiFi chips on the device.
Sourcepub fn get_chip(
&self,
payload: WifiGetChipRequest,
___deadline: MonotonicInstant,
) -> Result<WifiGetChipResult, Error>
pub fn get_chip( &self, payload: WifiGetChipRequest, ___deadline: MonotonicInstant, ) -> Result<WifiGetChipResult, Error>
Register the channel to make request to the WifiChip
with the given
chip_id
Trait Implementations§
Source§impl Debug for WifiSynchronousProxy
impl Debug for WifiSynchronousProxy
Source§impl SynchronousProxy for WifiSynchronousProxy
impl SynchronousProxy for WifiSynchronousProxy
Source§type Protocol = WifiMarker
type Protocol = WifiMarker
Proxy
controls.