pub enum DeviceTestRequest {
Reset {
responder: DeviceTestResetResponder,
},
GetNcpVersion {
responder: DeviceTestGetNcpVersionResponder,
},
GetCurrentRssi {
responder: DeviceTestGetCurrentRssiResponder,
},
GetFactoryMacAddress {
responder: DeviceTestGetFactoryMacAddressResponder,
},
GetCurrentMacAddress {
responder: DeviceTestGetCurrentMacAddressResponder,
},
GetCurrentChannel {
responder: DeviceTestGetCurrentChannelResponder,
},
GetPartitionId {
responder: DeviceTestGetPartitionIdResponder,
},
GetThreadRloc16 {
responder: DeviceTestGetThreadRloc16Responder,
},
GetThreadRouterId {
responder: DeviceTestGetThreadRouterIdResponder,
},
ReplaceMacAddressFilterSettings {
settings: MacAddressFilterSettings,
responder: DeviceTestReplaceMacAddressFilterSettingsResponder,
},
GetMacAddressFilterSettings {
responder: DeviceTestGetMacAddressFilterSettingsResponder,
},
GetNeighborTable {
responder: DeviceTestGetNeighborTableResponder,
},
}
Variants§
Reset
Fields
responder: DeviceTestResetResponder
Resets this network interface, returning all volatile state to default values. Any information stored in non-volatile memory is preserved. If the interface was attached to a network, this method will cause the interface to detach. In that case, once the interface has finished initialization the interface will attempt to reattach to the previous network.
GetNcpVersion
Fields
responder: DeviceTestGetNcpVersionResponder
Returns the version string describing the firmware/stack version that is in use.
GetCurrentRssi
Fields
responder: DeviceTestGetCurrentRssiResponder
Returns the current RSSI measured by the radio.
GetFactoryMacAddress
Fields
responder: DeviceTestGetFactoryMacAddressResponder
Returns the factory-assigned static MAC address.
GetCurrentMacAddress
Fields
responder: DeviceTestGetCurrentMacAddressResponder
Returns the currently used MAC address, which can differ from the static factory-assigned MAC address.
GetCurrentChannel
Fields
responder: DeviceTestGetCurrentChannelResponder
Returns the current channel index for the radio.
GetPartitionId
Fields
responder: DeviceTestGetPartitionIdResponder
Returns the partition ID of the currently associated network partition.
GetThreadRloc16
Fields
responder: DeviceTestGetThreadRloc16Responder
GetThreadRouterId
Fields
responder: DeviceTestGetThreadRouterIdResponder
ReplaceMacAddressFilterSettings
Fields
settings: MacAddressFilterSettings
Updates the address filter settings.
Responds once the filter settings have taken effect.
GetMacAddressFilterSettings
Fields
Returns the current address filter settings.
GetNeighborTable
Fields
responder: DeviceTestGetNeighborTableResponder
Returns a snapshot of the current neighbor table.
Implementations§
source§impl DeviceTestRequest
impl DeviceTestRequest
pub fn into_reset(self) -> Option<DeviceTestResetResponder>
pub fn into_get_ncp_version(self) -> Option<DeviceTestGetNcpVersionResponder>
pub fn into_get_current_rssi(self) -> Option<DeviceTestGetCurrentRssiResponder>
pub fn into_get_factory_mac_address( self ) -> Option<DeviceTestGetFactoryMacAddressResponder>
pub fn into_get_current_mac_address( self ) -> Option<DeviceTestGetCurrentMacAddressResponder>
pub fn into_get_current_channel( self ) -> Option<DeviceTestGetCurrentChannelResponder>
pub fn into_get_partition_id(self) -> Option<DeviceTestGetPartitionIdResponder>
pub fn into_get_thread_rloc16( self ) -> Option<DeviceTestGetThreadRloc16Responder>
pub fn into_get_thread_router_id( self ) -> Option<DeviceTestGetThreadRouterIdResponder>
pub fn into_replace_mac_address_filter_settings( self ) -> Option<(MacAddressFilterSettings, DeviceTestReplaceMacAddressFilterSettingsResponder)>
pub fn into_get_mac_address_filter_settings( self ) -> Option<DeviceTestGetMacAddressFilterSettingsResponder>
pub fn into_get_neighbor_table( self ) -> Option<DeviceTestGetNeighborTableResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL