pub struct InteractiveGuestSynchronousProxy { /* private fields */ }Implementations§
Source§impl InteractiveGuestSynchronousProxy
impl InteractiveGuestSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<InteractiveGuestEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<InteractiveGuestEvent, 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.
pub fn start( &self, guest_type: GuestType, name: &str, guest_config: GuestConfig, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn shutdown(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Trait Implementations§
Source§impl From<Channel> for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
Source§impl From<InteractiveGuestSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<InteractiveGuestSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: InteractiveGuestSynchronousProxy) -> Self
fn from(value: InteractiveGuestSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
impl FromClient for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = InteractiveGuestMarker
type Protocol = InteractiveGuestMarker
The protocol.
Source§fn from_client(value: ClientEnd<InteractiveGuestMarker>) -> Self
fn from_client(value: ClientEnd<InteractiveGuestMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for InteractiveGuestSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = InteractiveGuestProxy
type Proxy = InteractiveGuestProxy
The async proxy for the same protocol.
Source§type Protocol = InteractiveGuestMarker
type Protocol = InteractiveGuestMarker
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 InteractiveGuestSynchronousProxy
impl RefUnwindSafe for InteractiveGuestSynchronousProxy
impl Send for InteractiveGuestSynchronousProxy
impl Sync for InteractiveGuestSynchronousProxy
impl Unpin for InteractiveGuestSynchronousProxy
impl UnsafeUnpin for InteractiveGuestSynchronousProxy
impl UnwindSafe for InteractiveGuestSynchronousProxy
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