pub enum InteractiveDebianGuestRequest {
PutFile {
local_file: ClientEnd<FileMarker>,
remote_path: String,
responder: InteractiveDebianGuestPutFileResponder,
},
GetFile {
remote_path: String,
local_file: ClientEnd<FileMarker>,
responder: InteractiveDebianGuestGetFileResponder,
},
ExecuteCommand {
command: String,
env: Vec<EnvironmentVariable>,
stdin: Option<Socket>,
stdout: Option<Socket>,
stderr: Option<Socket>,
command_listener: ServerEnd<CommandListenerMarker>,
control_handle: InteractiveDebianGuestControlHandle,
},
Start {
name: String,
guest_config: GuestConfig,
responder: InteractiveDebianGuestStartResponder,
},
Shutdown {
responder: InteractiveDebianGuestShutdownResponder,
},
}
Expand description
Encapsulates the starting and interaction of a Debian guest. This is primarily a convenience, but also provides an abstraction layer over the interaction client_impl.h and client_operation_state.h files. This abstraction allows reuse of the interaction implementations across Fuchsia processes via FIDL, regardless of the caller language (e.g. Rust).
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.
Fields
§
env: Vec<EnvironmentVariable>
§
command_listener: ServerEnd<CommandListenerMarker>
§
control_handle: InteractiveDebianGuestControlHandle
Start
Shutdown
Fields
§
responder: InteractiveDebianGuestShutdownResponder
Implementations§
Source§impl InteractiveDebianGuestRequest
impl InteractiveDebianGuestRequest
pub fn into_put_file( self, ) -> Option<(ClientEnd<FileMarker>, String, InteractiveDebianGuestPutFileResponder)>
pub fn into_get_file( self, ) -> Option<(String, ClientEnd<FileMarker>, InteractiveDebianGuestGetFileResponder)>
pub fn into_execute_command( self, ) -> Option<(String, Vec<EnvironmentVariable>, Option<Socket>, Option<Socket>, Option<Socket>, ServerEnd<CommandListenerMarker>, InteractiveDebianGuestControlHandle)>
pub fn into_start( self, ) -> Option<(String, GuestConfig, InteractiveDebianGuestStartResponder)>
pub fn into_shutdown(self) -> Option<InteractiveDebianGuestShutdownResponder>
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 InteractiveDebianGuestRequest
impl !RefUnwindSafe for InteractiveDebianGuestRequest
impl Send for InteractiveDebianGuestRequest
impl Sync for InteractiveDebianGuestRequest
impl Unpin for InteractiveDebianGuestRequest
impl !UnwindSafe for InteractiveDebianGuestRequest
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