pub struct CommandResponder { /* private fields */ }Expand description
Responder for a single fuchsia.driver.debug.Debug/Execute request.
Implementations§
Source§impl CommandResponder
impl CommandResponder
Sourcepub fn send(
self,
result: Result<impl AsRef<str>, impl Display>,
) -> Result<(), Error>
pub fn send( self, result: Result<impl AsRef<str>, impl Display>, ) -> Result<(), Error>
Writes the command result (Ok(stdout) or Err(error)) to the appropriate socket and
sends the exit code over the FIDL responder.
Sourcepub fn send_execution_result(self, result: ExecutionResult) -> Result<(), Error>
pub fn send_execution_result(self, result: ExecutionResult) -> Result<(), Error>
Writes an ExecutionResult to the stdout/stderr sockets and sends the exit code over the
FIDL responder.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandResponder
impl !UnwindSafe for CommandResponder
impl Freeze for CommandResponder
impl Send for CommandResponder
impl Sync for CommandResponder
impl Unpin for CommandResponder
impl UnsafeUnpin for CommandResponder
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
Mutably borrows from an owned value. Read more