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.