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