pub struct FactoryDeviceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl FactoryDeviceSynchronousProxy
impl FactoryDeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<FactoryDeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<FactoryDeviceEvent, 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 send_mfg_command(
&self,
command: &str,
___deadline: MonotonicInstant,
) -> Result<String, Error>
pub fn send_mfg_command( &self, command: &str, ___deadline: MonotonicInstant, ) -> Result<String, Error>
Send a proprietary manufacturing command to the device and return the response.
This method is intended to be used to facilitate device testing on the assembly line and is typically only used during device manufacturing.
Commands are given as strings (command + arguments) and the response is also a string. The usage and format of the commands is dependent on the firmware on the LoWPAN device.
When finished sending manufacturing commands, call fuchsia.lowpan.test.DeviceTest.reset()
to return the device to normal behavior.
Sourcepub fn setup_ot_cli(
&self,
server_socket: Socket,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn setup_ot_cli( &self, server_socket: Socket, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Send proprietary manufacturing commands to the device and return the response.
This method is intended to send the exact same set of commands as SendMfgCommand(), but
instead of sending one command at a time, this method opens an opens an interactive shell
operated over server_socket
.
Trait Implementations§
Source§impl SynchronousProxy for FactoryDeviceSynchronousProxy
impl SynchronousProxy for FactoryDeviceSynchronousProxy
Source§type Proxy = FactoryDeviceProxy
type Proxy = FactoryDeviceProxy
Source§type Protocol = FactoryDeviceMarker
type Protocol = FactoryDeviceMarker
Proxy
controls.