pub struct InteractionSynchronousProxy { /* private fields */ }
Implementations§
source§impl InteractionSynchronousProxy
impl InteractionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<InteractionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<InteractionEvent, 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 put_file(
&self,
local_file: ClientEnd<FileMarker>,
remote_path: &str,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn put_file( &self, local_file: ClientEnd<FileMarker>, remote_path: &str, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Take a local file from the Fuchsia host and transfer it to a destination location on the guest under test.
sourcepub fn get_file(
&self,
remote_path: &str,
local_file: ClientEnd<FileMarker>,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn get_file( &self, remote_path: &str, local_file: ClientEnd<FileMarker>, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Pull a file from the guest under test and copy it to the specified location on the Fuchsia host.
sourcepub fn execute_command(
&self,
command: &str,
env: &[EnvironmentVariable],
stdin: Option<Socket>,
stdout: Option<Socket>,
stderr: Option<Socket>,
command_listener: ServerEnd<CommandListenerMarker>,
) -> Result<(), Error>
pub fn execute_command( &self, command: &str, env: &[EnvironmentVariable], stdin: Option<Socket>, stdout: Option<Socket>, stderr: Option<Socket>, command_listener: ServerEnd<CommandListenerMarker>, ) -> Result<(), Error>
Execute command on the guest under test and return the resulting output, error, and return code.
Trait Implementations§
source§impl Debug for InteractionSynchronousProxy
impl Debug for InteractionSynchronousProxy
source§impl SynchronousProxy for InteractionSynchronousProxy
impl SynchronousProxy for InteractionSynchronousProxy
§type Proxy = InteractionProxy
type Proxy = InteractionProxy
The async proxy for the same protocol.
§type Protocol = InteractionMarker
type Protocol = InteractionMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for InteractionSynchronousProxy
impl RefUnwindSafe for InteractionSynchronousProxy
impl Send for InteractionSynchronousProxy
impl Sync for InteractionSynchronousProxy
impl Unpin for InteractionSynchronousProxy
impl UnwindSafe for InteractionSynchronousProxy
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