pub struct WifiChipProxy { /* private fields */ }
Implementations§
Source§impl WifiChipProxy
impl WifiChipProxy
Sourcepub fn take_event_stream(&self) -> WifiChipEventStream
pub fn take_event_stream(&self) -> WifiChipEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn create_sta_iface(
&self,
payload: WifiChipCreateStaIfaceRequest,
) -> QueryResponseFut<WifiChipCreateStaIfaceResult, DefaultFuchsiaResourceDialect>
pub fn create_sta_iface( &self, payload: WifiChipCreateStaIfaceRequest, ) -> QueryResponseFut<WifiChipCreateStaIfaceResult, DefaultFuchsiaResourceDialect>
Request the chip to create a STA iface.
Sourcepub fn get_sta_iface_names(
&self,
) -> QueryResponseFut<WifiChipGetStaIfaceNamesResponse, DefaultFuchsiaResourceDialect>
pub fn get_sta_iface_names( &self, ) -> QueryResponseFut<WifiChipGetStaIfaceNamesResponse, DefaultFuchsiaResourceDialect>
Get the names of all active ifaces.
Sourcepub fn get_sta_iface(
&self,
payload: WifiChipGetStaIfaceRequest,
) -> QueryResponseFut<WifiChipGetStaIfaceResult, DefaultFuchsiaResourceDialect>
pub fn get_sta_iface( &self, payload: WifiChipGetStaIfaceRequest, ) -> QueryResponseFut<WifiChipGetStaIfaceResult, DefaultFuchsiaResourceDialect>
Request a new connection to an existing iface.
Sourcepub fn remove_sta_iface(
&self,
payload: WifiChipRemoveStaIfaceRequest,
) -> QueryResponseFut<WifiChipRemoveStaIfaceResult, DefaultFuchsiaResourceDialect>
pub fn remove_sta_iface( &self, payload: WifiChipRemoveStaIfaceRequest, ) -> QueryResponseFut<WifiChipRemoveStaIfaceResult, DefaultFuchsiaResourceDialect>
Request the destruction of a STA iface on the chip.
pub fn set_country_code( &self, payload: WifiChipSetCountryCodeRequest, ) -> QueryResponseFut<WifiChipSetCountryCodeResult, DefaultFuchsiaResourceDialect>
Sourcepub fn get_available_modes(
&self,
) -> QueryResponseFut<WifiChipGetAvailableModesResponse, DefaultFuchsiaResourceDialect>
pub fn get_available_modes( &self, ) -> QueryResponseFut<WifiChipGetAvailableModesResponse, DefaultFuchsiaResourceDialect>
Get a set of operation modes that the chip supports. This combination encodes what iface types and how many can be created, and which ones can run concurrently.
Sourcepub fn get_id(
&self,
) -> QueryResponseFut<WifiChipGetIdResponse, DefaultFuchsiaResourceDialect>
pub fn get_id( &self, ) -> QueryResponseFut<WifiChipGetIdResponse, DefaultFuchsiaResourceDialect>
Get the ID of the current chip.
Sourcepub fn get_mode(
&self,
) -> QueryResponseFut<WifiChipGetModeResponse, DefaultFuchsiaResourceDialect>
pub fn get_mode( &self, ) -> QueryResponseFut<WifiChipGetModeResponse, DefaultFuchsiaResourceDialect>
Get the current mode that the chip is in.
Sourcepub fn get_capabilities(
&self,
) -> QueryResponseFut<WifiChipGetCapabilitiesResponse, DefaultFuchsiaResourceDialect>
pub fn get_capabilities( &self, ) -> QueryResponseFut<WifiChipGetCapabilitiesResponse, DefaultFuchsiaResourceDialect>
Get capabilities supported by this chip.
Trait Implementations§
Source§impl Clone for WifiChipProxy
impl Clone for WifiChipProxy
Source§fn clone(&self) -> WifiChipProxy
fn clone(&self) -> WifiChipProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WifiChipProxy
impl Debug for WifiChipProxy
Source§impl Proxy for WifiChipProxy
impl Proxy for WifiChipProxy
Source§type Protocol = WifiChipMarker
type Protocol = WifiChipMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Source§impl WifiChipProxyInterface for WifiChipProxy
impl WifiChipProxyInterface for WifiChipProxy
type CreateStaIfaceResponseFut = QueryResponseFut<Result<(), i32>>
type GetStaIfaceNamesResponseFut = QueryResponseFut<WifiChipGetStaIfaceNamesResponse>
type GetStaIfaceResponseFut = QueryResponseFut<Result<(), i32>>
type RemoveStaIfaceResponseFut = QueryResponseFut<Result<(), i32>>
type SetCountryCodeResponseFut = QueryResponseFut<Result<(), i32>>
type GetAvailableModesResponseFut = QueryResponseFut<WifiChipGetAvailableModesResponse>
type GetIdResponseFut = QueryResponseFut<WifiChipGetIdResponse>
type GetModeResponseFut = QueryResponseFut<WifiChipGetModeResponse>
type GetCapabilitiesResponseFut = QueryResponseFut<WifiChipGetCapabilitiesResponse>
fn create_sta_iface( &self, payload: WifiChipCreateStaIfaceRequest, ) -> Self::CreateStaIfaceResponseFut
fn get_sta_iface_names(&self) -> Self::GetStaIfaceNamesResponseFut
fn get_sta_iface( &self, payload: WifiChipGetStaIfaceRequest, ) -> Self::GetStaIfaceResponseFut
fn remove_sta_iface( &self, payload: WifiChipRemoveStaIfaceRequest, ) -> Self::RemoveStaIfaceResponseFut
fn set_country_code( &self, payload: WifiChipSetCountryCodeRequest, ) -> Self::SetCountryCodeResponseFut
fn get_available_modes(&self) -> Self::GetAvailableModesResponseFut
fn get_id(&self) -> Self::GetIdResponseFut
fn get_mode(&self) -> Self::GetModeResponseFut
fn get_capabilities(&self) -> Self::GetCapabilitiesResponseFut
Auto Trait Implementations§
impl Freeze for WifiChipProxy
impl !RefUnwindSafe for WifiChipProxy
impl Send for WifiChipProxy
impl Sync for WifiChipProxy
impl Unpin for WifiChipProxy
impl !UnwindSafe for WifiChipProxy
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.