pub struct DebugProxy { /* private fields */ }Implementations§
Source§impl DebugProxy
impl DebugProxy
Sourcepub fn take_event_stream(&self) -> DebugEventStream
pub fn take_event_stream(&self) -> DebugEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn execute(
&self,
args: &[String],
stdout: Socket,
stderr: Socket,
) -> QueryResponseFut<DebugExecuteResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn execute( &self, args: &[String], stdout: Socket, stderr: Socket, ) -> QueryResponseFut<DebugExecuteResult, DefaultFuchsiaResourceDialect> ⓘ
Executes a command with the provided argument vector.
The argument vector args is passed to the driver’s command handler
as-is, without in-flight modification. The argument vector follows
standard command-line conventions (analogous to argv), where the first
argument (args[0]) is typically the command or subcommand name,
followed by any flags or positional arguments.
Standard output and standard error from command execution are streamed
to the provided stdout and stderr sockets. The driver or command
handler writes to these sockets and closes them upon or before
returning the response.
Returns the command’s process exit code (exit_code), where 0
typically denotes success.
§Error
Returns a zx.Status error if the execution request itself fails:
ZX_ERR_INVALID_ARGS:argsis empty.ZX_ERR_NOT_FOUND: The requested command inargs[0]is unknown.
Sourcepub fn list_commands(
&self,
) -> QueryResponseFut<DebugListCommandsResult, DefaultFuchsiaResourceDialect> ⓘ
pub fn list_commands( &self, ) -> QueryResponseFut<DebugListCommandsResult, DefaultFuchsiaResourceDialect> ⓘ
Lists all supported commands and their descriptions.
Trait Implementations§
Source§impl Clone for DebugProxy
impl Clone for DebugProxy
Source§fn clone(&self) -> DebugProxy
fn clone(&self) -> DebugProxy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DebugProxy
impl Debug for DebugProxy
Source§impl DebugProxyInterface for DebugProxy
impl DebugProxyInterface for DebugProxy
type ExecuteResponseFut = QueryResponseFut<Result<i32, i32>>
type ListCommandsResponseFut = QueryResponseFut<Result<Vec<CommandInfo>, i32>>
fn execute( &self, args: &[String], stdout: Socket, stderr: Socket, ) -> Self::ExecuteResponseFut
fn list_commands(&self) -> Self::ListCommandsResponseFut
Source§impl Proxy for DebugProxy
impl Proxy for DebugProxy
Source§type Protocol = DebugMarker
type Protocol = DebugMarker
Proxy controls.