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: MonotonicInstant,
) -> Result<DeviceTestEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant) -> Result<(), Error>
pub fn reset(&self, ___deadline: MonotonicInstant) -> 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: MonotonicInstant,
) -> Result<String, Error>
pub fn get_ncp_version( &self, ___deadline: MonotonicInstant, ) -> Result<String, Error>
Returns the version string describing the firmware/stack version that is in use.
Sourcepub fn get_current_rssi(
&self,
___deadline: MonotonicInstant,
) -> Result<i8, Error>
pub fn get_current_rssi( &self, ___deadline: MonotonicInstant, ) -> Result<i8, Error>
Returns the current RSSI measured by the radio.
Sourcepub fn get_factory_mac_address(
&self,
___deadline: MonotonicInstant,
) -> Result<MacAddress, Error>
pub fn get_factory_mac_address( &self, ___deadline: MonotonicInstant, ) -> Result<MacAddress, Error>
Returns the factory-assigned static MAC address.
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 currently used MAC address, which can differ from the static factory-assigned MAC address.
Sourcepub fn get_current_channel(
&self,
___deadline: MonotonicInstant,
) -> Result<u16, Error>
pub fn get_current_channel( &self, ___deadline: MonotonicInstant, ) -> Result<u16, Error>
Returns the current channel index for the radio.
Sourcepub fn get_partition_id(
&self,
___deadline: MonotonicInstant,
) -> Result<u32, Error>
pub fn get_partition_id( &self, ___deadline: MonotonicInstant, ) -> Result<u32, Error>
Returns the partition ID of the currently associated network partition.
pub fn get_thread_rloc16( &self, ___deadline: MonotonicInstant, ) -> Result<u16, Error>
pub fn get_thread_router_id( &self, ___deadline: MonotonicInstant, ) -> Result<u8, Error>
Sourcepub fn replace_mac_address_filter_settings(
&self,
settings: &MacAddressFilterSettings,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Updates the address filter settings.
Responds once the filter settings have taken effect.
Sourcepub fn get_mac_address_filter_settings(
&self,
___deadline: MonotonicInstant,
) -> Result<MacAddressFilterSettings, Error>
pub fn get_mac_address_filter_settings( &self, ___deadline: MonotonicInstant, ) -> Result<MacAddressFilterSettings, Error>
Returns the current address filter settings.
Sourcepub fn get_neighbor_table(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<NeighborInfo>, Error>
pub fn get_neighbor_table( &self, ___deadline: MonotonicInstant, ) -> 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
Source§type Proxy = DeviceTestProxy
type Proxy = DeviceTestProxy
Source§type Protocol = DeviceTestMarker
type Protocol = DeviceTestMarker
Proxy
controls.