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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl WifiProxyInterface for WifiProxy
impl WifiProxyInterface for WifiProxy
type StartResponseFut = QueryResponseFut<Result<(), i32>>
type StopResponseFut = QueryResponseFut<Result<(), i32>>
type GetStateResponseFut = QueryResponseFut<WifiGetStateResponse>
type GetChipIdsResponseFut = QueryResponseFut<WifiGetChipIdsResponse>
type GetChipResponseFut = QueryResponseFut<Result<(), i32>>
fn register_event_callback( &self, payload: WifiRegisterEventCallbackRequest, ) -> Result<(), Error>
fn start(&self) -> Self::StartResponseFut
fn stop(&self) -> Self::StopResponseFut
fn get_state(&self) -> Self::GetStateResponseFut
fn get_chip_ids(&self) -> Self::GetChipIdsResponseFut
fn get_chip(&self, payload: WifiGetChipRequest) -> Self::GetChipResponseFut
Auto Trait Implementations§
impl Freeze for WifiProxy
impl !RefUnwindSafe for WifiProxy
impl Send for WifiProxy
impl Sync for WifiProxy
impl Unpin for WifiProxy
impl !UnwindSafe for WifiProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)