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 get_credential(
&self,
___deadline: MonotonicInstant,
) -> Result<Option<Box<Credential>>, Error>
pub fn get_credential( &self, ___deadline: MonotonicInstant, ) -> Result<Option<Box<Credential>>, Error>
Fetches the current credential.
The returned credential will have originated from a previous call
to ProvisionNetwork
, JoinNetwork
, or FormNetwork
. If the
device is not provisioned (for example, by calling LeaveNetwork()
)
then this method returns nothing.
Sourcepub fn watch_identity(
&self,
___deadline: MonotonicInstant,
) -> Result<Identity, Error>
pub fn watch_identity( &self, ___deadline: MonotonicInstant, ) -> Result<Identity, Error>
Observes changes to the current network identity.
First call always returns a snapshot of the current identity. Subsequent calls will block until the identity has changed, upon which the entire updated identity is returned.
If there is no identity currently associated with the device, then the returned identity will be empty.
Changes are not queued. The returned identity always represents the latest and most accurate value, even if several changes had happened in-between calls.
Note that the changes are NOT incremental: whenever there is a change, the entire current LoWPAN identity is returned.
The value of the identity can be changed by any of the following calls:
Device.ProvisionNetwork()
Device.LeaveNetwork()
DeviceExtra.JoinNetwork()
DeviceExtra.FormNetwork()
Sourcepub fn get_current_mac_address(
&self,
___deadline: MonotonicInstant,
) -> Result<MacAddress, Error>
pub fn get_current_mac_address( &self, ___deadline: MonotonicInstant, ) -> Result<MacAddress, Error>
Returns the current MAC address being used for this device, which may differ from the static factory-assigned MAC address.
This address is generally static, but may change when the device is re-associated to a different network or a factory reset is performed.
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.