pub struct FactoryDeviceProxy { /* private fields */ }
Implementations§
Source§impl FactoryDeviceProxy
impl FactoryDeviceProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.factory.lowpan/FactoryDevice.
Sourcepub fn take_event_stream(&self) -> FactoryDeviceEventStream
pub fn take_event_stream(&self) -> FactoryDeviceEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn send_mfg_command(
&self,
command: &str,
) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
pub fn send_mfg_command( &self, command: &str, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn setup_ot_cli( &self, server_socket: Socket, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 Clone for FactoryDeviceProxy
impl Clone for FactoryDeviceProxy
Source§fn clone(&self) -> FactoryDeviceProxy
fn clone(&self) -> FactoryDeviceProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FactoryDeviceProxy
impl Debug for FactoryDeviceProxy
Source§impl FactoryDeviceProxyInterface for FactoryDeviceProxy
impl FactoryDeviceProxyInterface for FactoryDeviceProxy
type SendMfgCommandResponseFut = QueryResponseFut<String>
type SetupOtCliResponseFut = QueryResponseFut<()>
fn send_mfg_command(&self, command: &str) -> Self::SendMfgCommandResponseFut
fn setup_ot_cli(&self, server_socket: Socket) -> Self::SetupOtCliResponseFut
Source§impl Proxy for FactoryDeviceProxy
impl Proxy for FactoryDeviceProxy
Source§type Protocol = FactoryDeviceMarker
type Protocol = FactoryDeviceMarker
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 FactoryDeviceProxy
impl !RefUnwindSafe for FactoryDeviceProxy
impl Send for FactoryDeviceProxy
impl Sync for FactoryDeviceProxy
impl Unpin for FactoryDeviceProxy
impl !UnwindSafe for FactoryDeviceProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)