pub struct DeviceTestSynchronousProxy { /* private fields */ }
Implementations§
source§impl DeviceTestSynchronousProxy
impl DeviceTestSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<DeviceTestEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<DeviceTestEvent, 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 reset(&self, ___deadline: Time) -> Result<(), Error>
pub fn reset(&self, ___deadline: Time) -> Result<(), Error>
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.
sourcepub fn get_ncp_version(&self, ___deadline: Time) -> Result<String, Error>
pub fn get_ncp_version(&self, ___deadline: Time) -> Result<String, Error>
Returns the version string describing the firmware/stack version that is in use.
sourcepub fn get_current_rssi(&self, ___deadline: Time) -> Result<i8, Error>
pub fn get_current_rssi(&self, ___deadline: Time) -> Result<i8, Error>
Returns the current RSSI measured by the radio.
sourcepub fn get_factory_mac_address(
&self,
___deadline: Time
) -> Result<MacAddress, Error>
pub fn get_factory_mac_address( &self, ___deadline: Time ) -> Result<MacAddress, Error>
Returns the factory-assigned static MAC address.
sourcepub fn get_current_mac_address(
&self,
___deadline: Time
) -> Result<MacAddress, Error>
pub fn get_current_mac_address( &self, ___deadline: Time ) -> Result<MacAddress, Error>
Returns the currently used MAC address, which can differ from the static factory-assigned MAC address.
sourcepub fn get_current_channel(&self, ___deadline: Time) -> Result<u16, Error>
pub fn get_current_channel(&self, ___deadline: Time) -> Result<u16, Error>
Returns the current channel index for the radio.
sourcepub fn get_partition_id(&self, ___deadline: Time) -> Result<u32, Error>
pub fn get_partition_id(&self, ___deadline: Time) -> Result<u32, Error>
Returns the partition ID of the currently associated network partition.
pub fn get_thread_rloc16(&self, ___deadline: Time) -> Result<u16, Error>
pub fn get_thread_router_id(&self, ___deadline: Time) -> Result<u8, Error>
sourcepub fn replace_mac_address_filter_settings(
&self,
settings: &MacAddressFilterSettings,
___deadline: Time
) -> Result<(), Error>
pub fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings, ___deadline: Time ) -> Result<(), Error>
Updates the address filter settings.
Responds once the filter settings have taken effect.
sourcepub fn get_mac_address_filter_settings(
&self,
___deadline: Time
) -> Result<MacAddressFilterSettings, Error>
pub fn get_mac_address_filter_settings( &self, ___deadline: Time ) -> Result<MacAddressFilterSettings, Error>
Returns the current address filter settings.
sourcepub fn get_neighbor_table(
&self,
___deadline: Time
) -> Result<Vec<NeighborInfo>, Error>
pub fn get_neighbor_table( &self, ___deadline: Time ) -> Result<Vec<NeighborInfo>, Error>
Returns a snapshot of the current neighbor table.
Trait Implementations§
source§impl Debug for DeviceTestSynchronousProxy
impl Debug for DeviceTestSynchronousProxy
source§impl SynchronousProxy for DeviceTestSynchronousProxy
impl SynchronousProxy for DeviceTestSynchronousProxy
§type Proxy = DeviceTestProxy
type Proxy = DeviceTestProxy
§type Protocol = DeviceTestMarker
type Protocol = DeviceTestMarker
Proxy
controls.