pub enum InteractionRequest {
PutFile {
local_file: ClientEnd<FileMarker>,
remote_path: String,
responder: InteractionPutFileResponder,
},
GetFile {
remote_path: String,
local_file: ClientEnd<FileMarker>,
responder: InteractionGetFileResponder,
},
ExecuteCommand {
command: String,
env: Vec<EnvironmentVariable>,
stdin: Option<Socket>,
stdout: Option<Socket>,
stderr: Option<Socket>,
command_listener: ServerEnd<CommandListenerMarker>,
control_handle: InteractionControlHandle,
},
}
Variants§
PutFile
Take a local file from the Fuchsia host and transfer it to a destination location on the guest under test.
GetFile
Pull a file from the guest under test and copy it to the specified location on the Fuchsia host.
ExecuteCommand
Execute command on the guest under test and return the resulting output, error, and return code.
Implementations§
Source§impl InteractionRequest
impl InteractionRequest
pub fn into_put_file( self, ) -> Option<(ClientEnd<FileMarker>, String, InteractionPutFileResponder)>
pub fn into_get_file( self, ) -> Option<(String, ClientEnd<FileMarker>, InteractionGetFileResponder)>
pub fn into_execute_command( self, ) -> Option<(String, Vec<EnvironmentVariable>, Option<Socket>, Option<Socket>, Option<Socket>, ServerEnd<CommandListenerMarker>, InteractionControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InteractionRequest
impl !RefUnwindSafe for InteractionRequest
impl Send for InteractionRequest
impl Sync for InteractionRequest
impl Unpin for InteractionRequest
impl !UnwindSafe for InteractionRequest
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