pub struct WifiChipSynchronousProxy { /* private fields */ }
Implementations§
Source§impl WifiChipSynchronousProxy
impl WifiChipSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<WifiChipEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<WifiChipEvent, 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 create_sta_iface(
&self,
payload: WifiChipCreateStaIfaceRequest,
___deadline: MonotonicInstant,
) -> Result<WifiChipCreateStaIfaceResult, Error>
pub fn create_sta_iface( &self, payload: WifiChipCreateStaIfaceRequest, ___deadline: MonotonicInstant, ) -> Result<WifiChipCreateStaIfaceResult, Error>
Request the chip to create a STA iface.
Sourcepub fn get_sta_iface_names(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetStaIfaceNamesResponse, Error>
pub fn get_sta_iface_names( &self, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetStaIfaceNamesResponse, Error>
Get the names of all active ifaces.
Sourcepub fn get_sta_iface(
&self,
payload: WifiChipGetStaIfaceRequest,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetStaIfaceResult, Error>
pub fn get_sta_iface( &self, payload: WifiChipGetStaIfaceRequest, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetStaIfaceResult, Error>
Request a new connection to an existing iface.
Sourcepub fn remove_sta_iface(
&self,
payload: WifiChipRemoveStaIfaceRequest,
___deadline: MonotonicInstant,
) -> Result<WifiChipRemoveStaIfaceResult, Error>
pub fn remove_sta_iface( &self, payload: WifiChipRemoveStaIfaceRequest, ___deadline: MonotonicInstant, ) -> Result<WifiChipRemoveStaIfaceResult, Error>
Request the destruction of a STA iface on the chip.
pub fn set_country_code( &self, payload: WifiChipSetCountryCodeRequest, ___deadline: MonotonicInstant, ) -> Result<WifiChipSetCountryCodeResult, Error>
Sourcepub fn get_available_modes(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetAvailableModesResponse, Error>
pub fn get_available_modes( &self, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetAvailableModesResponse, Error>
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,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetIdResponse, Error>
pub fn get_id( &self, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetIdResponse, Error>
Get the ID of the current chip.
Sourcepub fn get_mode(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetModeResponse, Error>
pub fn get_mode( &self, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetModeResponse, Error>
Get the current mode that the chip is in.
Sourcepub fn get_capabilities(
&self,
___deadline: MonotonicInstant,
) -> Result<WifiChipGetCapabilitiesResponse, Error>
pub fn get_capabilities( &self, ___deadline: MonotonicInstant, ) -> Result<WifiChipGetCapabilitiesResponse, Error>
Get capabilities supported by this chip.
Trait Implementations§
Source§impl Debug for WifiChipSynchronousProxy
impl Debug for WifiChipSynchronousProxy
Source§impl SynchronousProxy for WifiChipSynchronousProxy
impl SynchronousProxy for WifiChipSynchronousProxy
Source§type Proxy = WifiChipProxy
type Proxy = WifiChipProxy
The async proxy for the same protocol.
Source§type Protocol = WifiChipMarker
type Protocol = WifiChipMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for WifiChipSynchronousProxy
impl RefUnwindSafe for WifiChipSynchronousProxy
impl Send for WifiChipSynchronousProxy
impl Sync for WifiChipSynchronousProxy
impl Unpin for WifiChipSynchronousProxy
impl UnwindSafe for WifiChipSynchronousProxy
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