pub struct EnergyScanSynchronousProxy { /* private fields */ }
Implementations§
Source§impl EnergyScanSynchronousProxy
impl EnergyScanSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<EnergyScanEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<EnergyScanEvent, 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 start_energy_scan(
&self,
params: &EnergyScanParameters,
stream: ServerEnd<EnergyScanResultStreamMarker>,
) -> Result<(), Error>
pub fn start_energy_scan( &self, params: &EnergyScanParameters, stream: ServerEnd<EnergyScanResultStreamMarker>, ) -> Result<(), Error>
Starts an energy scan operation.
This can be used for surveying the spectrum to identify channels that should be avoided.
The scan operation may be cancelled by closing the stream protocol.
If a scan is started while another scan is in progress, the previous scan is allowed to complete before the new scan executes and starts returning results.
All scans should be expected to completely occupy the LoWPAN device while it is in progress, preventing other operations from completing until the scan has completed. Additionally, all network packets should be expected to be dropped while a scan is in progress.
Performing energy scans could be used to profile the spectrum energy for a location and thus be used to determine or refine coarse location information.
Trait Implementations§
Source§impl Debug for EnergyScanSynchronousProxy
impl Debug for EnergyScanSynchronousProxy
Source§impl SynchronousProxy for EnergyScanSynchronousProxy
impl SynchronousProxy for EnergyScanSynchronousProxy
Source§type Proxy = EnergyScanProxy
type Proxy = EnergyScanProxy
Source§type Protocol = EnergyScanMarker
type Protocol = EnergyScanMarker
Proxy
controls.