pub struct WlanSoftmacIfcBaseSynchronousProxy { /* private fields */ }
Implementations§
Source§impl WlanSoftmacIfcBaseSynchronousProxy
impl WlanSoftmacIfcBaseSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<WlanSoftmacIfcBaseEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<WlanSoftmacIfcBaseEvent, 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 report_tx_result(
&self,
tx_result: &WlanTxResult,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn report_tx_result( &self, tx_result: &WlanTxResult, ___deadline: MonotonicInstant, ) -> Result<(), Error>
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,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn notify_scan_complete( &self, payload: &WlanSoftmacIfcBaseNotifyScanCompleteRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
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.
Trait Implementations§
Source§impl SynchronousProxy for WlanSoftmacIfcBaseSynchronousProxy
impl SynchronousProxy for WlanSoftmacIfcBaseSynchronousProxy
Source§type Proxy = WlanSoftmacIfcBaseProxy
type Proxy = WlanSoftmacIfcBaseProxy
Source§type Protocol = WlanSoftmacIfcBaseMarker
type Protocol = WlanSoftmacIfcBaseMarker
Proxy
controls.