pub struct DeviceTestProxy { /* private fields */ }
Implementations§
source§impl DeviceTestProxy
impl DeviceTestProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.lowpan.test/DeviceTest.
sourcepub fn take_event_stream(&self) -> DeviceTestEventStream
pub fn take_event_stream(&self) -> DeviceTestEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn reset(&self) -> QueryResponseFut<()>
pub fn reset(&self) -> QueryResponseFut<()>
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) -> QueryResponseFut<String>
pub fn get_ncp_version(&self) -> QueryResponseFut<String>
Returns the version string describing the firmware/stack version that is in use.
sourcepub fn get_current_rssi(&self) -> QueryResponseFut<i8>
pub fn get_current_rssi(&self) -> QueryResponseFut<i8>
Returns the current RSSI measured by the radio.
sourcepub fn get_factory_mac_address(&self) -> QueryResponseFut<MacAddress>
pub fn get_factory_mac_address(&self) -> QueryResponseFut<MacAddress>
Returns the factory-assigned static MAC address.
sourcepub fn get_current_mac_address(&self) -> QueryResponseFut<MacAddress>
pub fn get_current_mac_address(&self) -> QueryResponseFut<MacAddress>
Returns the currently used MAC address, which can differ from the static factory-assigned MAC address.
sourcepub fn get_current_channel(&self) -> QueryResponseFut<u16>
pub fn get_current_channel(&self) -> QueryResponseFut<u16>
Returns the current channel index for the radio.
sourcepub fn get_partition_id(&self) -> QueryResponseFut<u32>
pub fn get_partition_id(&self) -> QueryResponseFut<u32>
Returns the partition ID of the currently associated network partition.
pub fn get_thread_rloc16(&self) -> QueryResponseFut<u16>
pub fn get_thread_router_id(&self) -> QueryResponseFut<u8>
sourcepub fn replace_mac_address_filter_settings(
&self,
settings: &MacAddressFilterSettings
) -> QueryResponseFut<()>
pub fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings ) -> QueryResponseFut<()>
Updates the address filter settings.
Responds once the filter settings have taken effect.
sourcepub fn get_mac_address_filter_settings(
&self
) -> QueryResponseFut<MacAddressFilterSettings>
pub fn get_mac_address_filter_settings( &self ) -> QueryResponseFut<MacAddressFilterSettings>
Returns the current address filter settings.
sourcepub fn get_neighbor_table(&self) -> QueryResponseFut<Vec<NeighborInfo>>
pub fn get_neighbor_table(&self) -> QueryResponseFut<Vec<NeighborInfo>>
Returns a snapshot of the current neighbor table.
Trait Implementations§
source§impl Clone for DeviceTestProxy
impl Clone for DeviceTestProxy
source§fn clone(&self) -> DeviceTestProxy
fn clone(&self) -> DeviceTestProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceTestProxy
impl Debug for DeviceTestProxy
source§impl DeviceTestProxyInterface for DeviceTestProxy
impl DeviceTestProxyInterface for DeviceTestProxy
type ResetResponseFut = QueryResponseFut<()>
fn reset(&self) -> Self::ResetResponseFut
type GetNcpVersionResponseFut = QueryResponseFut<String>
fn get_ncp_version(&self) -> Self::GetNcpVersionResponseFut
type GetCurrentRssiResponseFut = QueryResponseFut<i8>
fn get_current_rssi(&self) -> Self::GetCurrentRssiResponseFut
type GetFactoryMacAddressResponseFut = QueryResponseFut<MacAddress>
fn get_factory_mac_address(&self) -> Self::GetFactoryMacAddressResponseFut
type GetCurrentMacAddressResponseFut = QueryResponseFut<MacAddress>
fn get_current_mac_address(&self) -> Self::GetCurrentMacAddressResponseFut
type GetCurrentChannelResponseFut = QueryResponseFut<u16>
fn get_current_channel(&self) -> Self::GetCurrentChannelResponseFut
type GetPartitionIdResponseFut = QueryResponseFut<u32>
fn get_partition_id(&self) -> Self::GetPartitionIdResponseFut
type GetThreadRloc16ResponseFut = QueryResponseFut<u16>
fn get_thread_rloc16(&self) -> Self::GetThreadRloc16ResponseFut
type GetThreadRouterIdResponseFut = QueryResponseFut<u8>
fn get_thread_router_id(&self) -> Self::GetThreadRouterIdResponseFut
type ReplaceMacAddressFilterSettingsResponseFut = QueryResponseFut<()>
fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings ) -> Self::ReplaceMacAddressFilterSettingsResponseFut
type GetMacAddressFilterSettingsResponseFut = QueryResponseFut<MacAddressFilterSettings>
fn get_mac_address_filter_settings( &self ) -> Self::GetMacAddressFilterSettingsResponseFut
type GetNeighborTableResponseFut = QueryResponseFut<Vec<NeighborInfo>>
fn get_neighbor_table(&self) -> Self::GetNeighborTableResponseFut
source§impl Proxy for DeviceTestProxy
impl Proxy for DeviceTestProxy
§type Protocol = DeviceTestMarker
type Protocol = DeviceTestMarker
Proxy
controls.