pub struct DeviceExtraSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DeviceExtraSynchronousProxy
impl DeviceExtraSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DeviceExtraEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DeviceExtraEvent, 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 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 Debug for DeviceExtraSynchronousProxy
impl Debug for DeviceExtraSynchronousProxy
Source§impl SynchronousProxy for DeviceExtraSynchronousProxy
impl SynchronousProxy for DeviceExtraSynchronousProxy
Source§type Proxy = DeviceExtraProxy
type Proxy = DeviceExtraProxy
Source§type Protocol = DeviceExtraMarker
type Protocol = DeviceExtraMarker
Proxy
controls.