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<(), DefaultFuchsiaResourceDialect> ⓘ
pub fn reset(&self) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
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, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_ncp_version( &self, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect> ⓘ
Returns the version string describing the firmware/stack version that is in use.
Sourcepub fn get_current_rssi(
&self,
) -> QueryResponseFut<i8, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_current_rssi( &self, ) -> QueryResponseFut<i8, DefaultFuchsiaResourceDialect> ⓘ
Returns the current RSSI measured by the radio.
Sourcepub fn get_factory_mac_address(
&self,
) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_factory_mac_address( &self, ) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect> ⓘ
Returns the factory-assigned static MAC address.
Sourcepub fn get_current_mac_address(
&self,
) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_current_mac_address( &self, ) -> QueryResponseFut<MacAddress, DefaultFuchsiaResourceDialect> ⓘ
Returns the currently used MAC address, which can differ from the static factory-assigned MAC address.
Sourcepub fn get_current_channel(
&self,
) -> QueryResponseFut<u16, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_current_channel( &self, ) -> QueryResponseFut<u16, DefaultFuchsiaResourceDialect> ⓘ
Returns the current channel index for the radio.
Sourcepub fn get_partition_id(
&self,
) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_partition_id( &self, ) -> QueryResponseFut<u32, DefaultFuchsiaResourceDialect> ⓘ
Returns the partition ID of the currently associated network partition.
pub fn get_thread_rloc16( &self, ) -> QueryResponseFut<u16, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_thread_router_id( &self, ) -> QueryResponseFut<u8, DefaultFuchsiaResourceDialect> ⓘ
Sourcepub fn replace_mac_address_filter_settings(
&self,
settings: &MacAddressFilterSettings,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
pub fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect> ⓘ
Updates the address filter settings.
Responds once the filter settings have taken effect.
Sourcepub fn get_mac_address_filter_settings(
&self,
) -> QueryResponseFut<MacAddressFilterSettings, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_mac_address_filter_settings( &self, ) -> QueryResponseFut<MacAddressFilterSettings, DefaultFuchsiaResourceDialect> ⓘ
Returns the current address filter settings.
Sourcepub fn get_neighbor_table(
&self,
) -> QueryResponseFut<Vec<NeighborInfo>, DefaultFuchsiaResourceDialect> ⓘ
pub fn get_neighbor_table( &self, ) -> QueryResponseFut<Vec<NeighborInfo>, DefaultFuchsiaResourceDialect> ⓘ
Returns a snapshot of the current neighbor table.
Trait Implementations§
Source§impl Clone for DeviceTestProxy
impl Clone for DeviceTestProxy
Source§impl Debug for DeviceTestProxy
impl Debug for DeviceTestProxy
Source§impl DeviceTestProxyInterface for DeviceTestProxy
impl DeviceTestProxyInterface for DeviceTestProxy
type ResetResponseFut = QueryResponseFut<()>
type GetNcpVersionResponseFut = QueryResponseFut<String>
type GetCurrentRssiResponseFut = QueryResponseFut<i8>
type GetFactoryMacAddressResponseFut = QueryResponseFut<MacAddress>
type GetCurrentMacAddressResponseFut = QueryResponseFut<MacAddress>
type GetCurrentChannelResponseFut = QueryResponseFut<u16>
type GetPartitionIdResponseFut = QueryResponseFut<u32>
type GetThreadRloc16ResponseFut = QueryResponseFut<u16>
type GetThreadRouterIdResponseFut = QueryResponseFut<u8>
type ReplaceMacAddressFilterSettingsResponseFut = QueryResponseFut<()>
type GetMacAddressFilterSettingsResponseFut = QueryResponseFut<MacAddressFilterSettings>
type GetNeighborTableResponseFut = QueryResponseFut<Vec<NeighborInfo>>
fn reset(&self) -> Self::ResetResponseFut
fn get_ncp_version(&self) -> Self::GetNcpVersionResponseFut
fn get_current_rssi(&self) -> Self::GetCurrentRssiResponseFut
fn get_factory_mac_address(&self) -> Self::GetFactoryMacAddressResponseFut
fn get_current_mac_address(&self) -> Self::GetCurrentMacAddressResponseFut
fn get_current_channel(&self) -> Self::GetCurrentChannelResponseFut
fn get_partition_id(&self) -> Self::GetPartitionIdResponseFut
fn get_thread_rloc16(&self) -> Self::GetThreadRloc16ResponseFut
fn get_thread_router_id(&self) -> Self::GetThreadRouterIdResponseFut
fn replace_mac_address_filter_settings( &self, settings: &MacAddressFilterSettings, ) -> Self::ReplaceMacAddressFilterSettingsResponseFut
fn get_mac_address_filter_settings( &self, ) -> Self::GetMacAddressFilterSettingsResponseFut
fn get_neighbor_table(&self) -> Self::GetNeighborTableResponseFut
Source§impl Proxy for DeviceTestProxy
impl Proxy for DeviceTestProxy
Source§type Protocol = DeviceTestMarker
type Protocol = DeviceTestMarker
Proxy controls.