pub struct WifiProxy { /* private fields */ }
Implementations§
Source§impl WifiProxy
impl WifiProxy
Sourcepub fn take_event_stream(&self) -> WifiEventStream
pub fn take_event_stream(&self) -> WifiEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<WifiStartResult, DefaultFuchsiaResourceDialect>
pub fn start( &self, ) -> QueryResponseFut<WifiStartResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<WifiStopResult, DefaultFuchsiaResourceDialect>
pub fn stop( &self, ) -> QueryResponseFut<WifiStopResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<WifiGetStateResponse, DefaultFuchsiaResourceDialect>
pub fn get_state( &self, ) -> QueryResponseFut<WifiGetStateResponse, DefaultFuchsiaResourceDialect>
Return a boolean based on whether WiFi is started
or not.
Sourcepub fn get_chip_ids(
&self,
) -> QueryResponseFut<WifiGetChipIdsResponse, DefaultFuchsiaResourceDialect>
pub fn get_chip_ids( &self, ) -> QueryResponseFut<WifiGetChipIdsResponse, DefaultFuchsiaResourceDialect>
Get the IDs of all the WiFi chips on the device.
Sourcepub fn get_chip(
&self,
payload: WifiGetChipRequest,
) -> QueryResponseFut<WifiGetChipResult, DefaultFuchsiaResourceDialect>
pub fn get_chip( &self, payload: WifiGetChipRequest, ) -> QueryResponseFut<WifiGetChipResult, DefaultFuchsiaResourceDialect>
Register the channel to make request to the WifiChip
with the given
chip_id
Trait Implementations§
Source§impl Proxy for WifiProxy
impl Proxy for WifiProxy
Source§type Protocol = WifiMarker
type Protocol = WifiMarker
Proxy
controls.