pub struct WlanSoftmacIfcBridgeProxy { /* private fields */ }
Implementations§
Source§impl WlanSoftmacIfcBridgeProxy
impl WlanSoftmacIfcBridgeProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.wlan.softmac/WlanSoftmacIfcBridge.
Sourcepub fn take_event_stream(&self) -> WlanSoftmacIfcBridgeEventStream
pub fn take_event_stream(&self) -> WlanSoftmacIfcBridgeEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn report_tx_result(
&self,
tx_result: &WlanTxResult,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn report_tx_result( &self, tx_result: &WlanTxResult, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Reports the result of an attempted transmission.
A device driver indicates support for ReportTxResult()
using
fuchsia.wlan.common/DeviceExtension.report_tx_result_supported
.
Sourcepub fn notify_scan_complete(
&self,
payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn notify_scan_complete( &self, payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Reports completion of a scan associated with the unique scan_id
. status
indicates whether the scan completed successfully, failed due to an error,
or was cancelled.
Return status indicates the reason for scan completion: ZX_OK: All channels were scanned successfully. ZX_ERR_CANCELLED: The scan was terminated by a user request, either an explicit WlanSoftmac.CancelScan() or the initiation of an incompatible request (e.g. connect). ZX_ERR_OUT_OF_RANGE: The scan request included a prohibited channel. This may be due to the current country setting.
Sourcepub fn stop_bridged_driver(
&self,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn stop_bridged_driver( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Stop the bridged driver.
Calling this method causes both the server end of this protocol (WlanSoftmacIfcBridge
)
to close and the client end of WlanSoftmacBridge
to close. The server will not return a
response from this method until after processing all queued events.
In practice, the wlansoftmac driver calls this method during unbind.
Trait Implementations§
Source§impl Clone for WlanSoftmacIfcBridgeProxy
impl Clone for WlanSoftmacIfcBridgeProxy
Source§fn clone(&self) -> WlanSoftmacIfcBridgeProxy
fn clone(&self) -> WlanSoftmacIfcBridgeProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WlanSoftmacIfcBridgeProxy
impl Debug for WlanSoftmacIfcBridgeProxy
Source§impl Proxy for WlanSoftmacIfcBridgeProxy
impl Proxy for WlanSoftmacIfcBridgeProxy
Source§type Protocol = WlanSoftmacIfcBridgeMarker
type Protocol = WlanSoftmacIfcBridgeMarker
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 WlanSoftmacIfcBridgeProxyInterface for WlanSoftmacIfcBridgeProxy
impl WlanSoftmacIfcBridgeProxyInterface for WlanSoftmacIfcBridgeProxy
type ReportTxResultResponseFut = QueryResponseFut<()>
type NotifyScanCompleteResponseFut = QueryResponseFut<()>
type StopBridgedDriverResponseFut = QueryResponseFut<()>
fn report_tx_result( &self, tx_result: &WlanTxResult, ) -> Self::ReportTxResultResponseFut
fn notify_scan_complete( &self, payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest, ) -> Self::NotifyScanCompleteResponseFut
fn stop_bridged_driver(&self) -> Self::StopBridgedDriverResponseFut
Auto Trait Implementations§
impl Freeze for WlanSoftmacIfcBridgeProxy
impl !RefUnwindSafe for WlanSoftmacIfcBridgeProxy
impl Send for WlanSoftmacIfcBridgeProxy
impl Sync for WlanSoftmacIfcBridgeProxy
impl Unpin for WlanSoftmacIfcBridgeProxy
impl !UnwindSafe for WlanSoftmacIfcBridgeProxy
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
)