pub struct DeviceExtraProxy { /* private fields */ }
Implementations§
Source§impl DeviceExtraProxy
impl DeviceExtraProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.experimental/DeviceExtra.
Sourcepub fn take_event_stream(&self) -> DeviceExtraEventStream
pub fn take_event_stream(&self) -> DeviceExtraEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn form_network(
&self,
params: &ProvisioningParams,
progress: ServerEnd<ProvisioningMonitorMarker>,
) -> Result<(), Error>
pub fn form_network( &self, params: &ProvisioningParams, progress: ServerEnd<ProvisioningMonitorMarker>, ) -> Result<(), Error>
Forms a new network with the given provisioning parameters.
Any unspecified fields that are required by the underlying device or network type will assigned with default values. If the credential is unspecified, a random one will be generated automatically.
This method will cause the device to leave any previously provisioned network.
Calling this method while the device is not active will implicitly make the device active.
Upon success, the device will be active and provisioned for the newly created network.
The progress of the operation can be monitored via
the ProvisioningMonitor
protocol instance. The operation
may be cancelled by closing the ProvisioningMonitor
.
Calling this method will cause any current form, join, or commission operation to be canceled.
Sourcepub fn join_network(
&self,
params: &JoinParams,
progress: ServerEnd<ProvisioningMonitorMarker>,
) -> Result<(), Error>
pub fn join_network( &self, params: &JoinParams, progress: ServerEnd<ProvisioningMonitorMarker>, ) -> Result<(), Error>
Attempts to join a pre-existing nearby network with the given provisioning parameters or joiner parameters.
In-band commissioning is supported.
Upon success, the device will be active and provisioned for the newly created network.
The progress of the operation can be monitored via
the ProvisioningMonitor
protocol instance. The operation
may be cancelled by closing the ProvisioningMonitor
.
Calling this method will cause any current form, join, or commission operation to be canceled.
Sourcepub fn start_network_scan(
&self,
params: &NetworkScanParameters,
stream: ServerEnd<BeaconInfoStreamMarker>,
) -> Result<(), Error>
pub fn start_network_scan( &self, params: &NetworkScanParameters, stream: ServerEnd<BeaconInfoStreamMarker>, ) -> Result<(), Error>
Starts an active network scan operation.
This scan is used to identify other nearby networks in order 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.
A [BeaconInfoStream
] instance could be used to expose coarse
location information.
Trait Implementations§
Source§impl Clone for DeviceExtraProxy
impl Clone for DeviceExtraProxy
Source§fn clone(&self) -> DeviceExtraProxy
fn clone(&self) -> DeviceExtraProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceExtraProxy
impl Debug for DeviceExtraProxy
Source§impl DeviceExtraProxyInterface for DeviceExtraProxy
impl DeviceExtraProxyInterface for DeviceExtraProxy
fn form_network( &self, params: &ProvisioningParams, progress: ServerEnd<ProvisioningMonitorMarker>, ) -> Result<(), Error>
fn join_network( &self, params: &JoinParams, progress: ServerEnd<ProvisioningMonitorMarker>, ) -> Result<(), Error>
fn start_network_scan( &self, params: &NetworkScanParameters, stream: ServerEnd<BeaconInfoStreamMarker>, ) -> Result<(), Error>
Source§impl Proxy for DeviceExtraProxy
impl Proxy for DeviceExtraProxy
Source§type Protocol = DeviceExtraMarker
type Protocol = DeviceExtraMarker
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 DeviceExtraProxy
impl !RefUnwindSafe for DeviceExtraProxy
impl Send for DeviceExtraProxy
impl Sync for DeviceExtraProxy
impl Unpin for DeviceExtraProxy
impl !UnwindSafe for DeviceExtraProxy
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
)