pub struct EnergyScanProxy { /* private fields */ }
Implementations§
Source§impl EnergyScanProxy
impl EnergyScanProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.device/EnergyScan.
Sourcepub fn take_event_stream(&self) -> EnergyScanEventStream
pub fn take_event_stream(&self) -> EnergyScanEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for EnergyScanProxy
impl Clone for EnergyScanProxy
Source§fn clone(&self) -> EnergyScanProxy
fn clone(&self) -> EnergyScanProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EnergyScanProxy
impl Debug for EnergyScanProxy
Source§impl EnergyScanProxyInterface for EnergyScanProxy
impl EnergyScanProxyInterface for EnergyScanProxy
fn start_energy_scan( &self, params: &EnergyScanParameters, stream: ServerEnd<EnergyScanResultStreamMarker>, ) -> Result<(), Error>
Source§impl Proxy for EnergyScanProxy
impl Proxy for EnergyScanProxy
Source§type Protocol = EnergyScanMarker
type Protocol = EnergyScanMarker
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>
Auto Trait Implementations§
impl Freeze for EnergyScanProxy
impl !RefUnwindSafe for EnergyScanProxy
impl Send for EnergyScanProxy
impl Sync for EnergyScanProxy
impl Unpin for EnergyScanProxy
impl !UnwindSafe for EnergyScanProxy
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
)