pub struct QrexecClient {
pub child: Child,
pub read: ChildStdout,
pub written: ChildStdin,
pub stderr: ChildStderr,
}Expand description
BUF_LEN is the size of the buffer used with the qrexec-client-vm call, –buffer-size=BUF_LEN, argument, and the size of the buffer used to write into the qrexec-client-vm file descriptors behind the scenes. The only thing you need to know when you set this is that 8 extra bytes are taken up by the header therefore you cannot send more data than <BUF_LEN - 8> in a single write call.
Fields§
§child: Child§read: ChildStdout§written: ChildStdin§stderr: ChildStderrImplementations§
Source§impl QrexecClient
impl QrexecClient
Sourcepub fn new<const BUF_LEN: usize>(
target_vmname: &str,
rpc_service: &str,
local_program: Option<&str>,
local_program_args: Option<&[&str]>,
) -> QRXRes<Self>
pub fn new<const BUF_LEN: usize>( target_vmname: &str, rpc_service: &str, local_program: Option<&str>, local_program_args: Option<&[&str]>, ) -> QRXRes<Self>
Calls qrexec-client-vm with the arguments provided through the args parameter. Arguments:
target_vmname: self explanatory
rpc_service: the service you are calling on the target vm, this can include an argument for the service using this syntax: some.service+argument.
local_program: Full path to local program to be connected with remote service.
local_program_args: Arguments for the local program.