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§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.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for DeviceTestProxy
impl !RefUnwindSafe for DeviceTestProxy
impl Send for DeviceTestProxy
impl Sync for DeviceTestProxy
impl Unpin for DeviceTestProxy
impl !UnwindSafe for DeviceTestProxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)