pub enum DeviceExtraRequest {
GetCredential {
responder: DeviceExtraGetCredentialResponder,
},
WatchIdentity {
responder: DeviceExtraWatchIdentityResponder,
},
GetCurrentMacAddress {
responder: DeviceExtraGetCurrentMacAddressResponder,
},
}
Expand description
LoWPAN Device “Extra” Protocol.
This protocol provides clients with a way to control and monitor aspects of the LoWPAN device that can, either directly or indirectly, leak PII or cryptographic keys.
Variants§
GetCredential
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.
Fields
responder: DeviceExtraGetCredentialResponder
WatchIdentity
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()
Fields
responder: DeviceExtraWatchIdentityResponder
GetCurrentMacAddress
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.
Fields
responder: DeviceExtraGetCurrentMacAddressResponder
Implementations§
Source§impl DeviceExtraRequest
impl DeviceExtraRequest
pub fn into_get_credential(self) -> Option<DeviceExtraGetCredentialResponder>
pub fn into_watch_identity(self) -> Option<DeviceExtraWatchIdentityResponder>
pub fn into_get_current_mac_address( self, ) -> Option<DeviceExtraGetCurrentMacAddressResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL