Struct vsh_rust_proto::vm_tools::vsh::SetupConnectionRequest
source · pub struct SetupConnectionRequest {
pub target: String,
pub user: String,
pub env: HashMap<String, String>,
pub command: String,
pub argv: Vec<String>,
pub window_rows: i32,
pub window_cols: i32,
pub nopty: bool,
pub cwd: String,
pub cwd_pid: i32,
}
Expand description
Request to set up a connection to a container. This must be the first message sent to the server from the client.
Fields§
§target: String
Target container. “vm_shell” is a special value to get a VM shell.
user: String
User to execute the target program.
env: HashMap<String, String>
Map of environment variables to forward.
command: String
Deprecated. Target command. Empty indicates a login shell.
argv: Vec<String>
Argv of the target program to run. Empty indicates a login shell.
window_rows: i32
Initial window size (rows) of the pty.
window_cols: i32
Initial window size (cols) of the pty.
nopty: bool
True if using a noninteractive client and a pty should not be allocated. The logic here is inverted to keep backwards compatibility with the current behavior (always allocate a pty).
cwd: String
Optional: directory to set for current working directory.
cwd_pid: i32
Optional: use /proc/<cwd_pid>/cwd for current working directory.
Trait Implementations§
source§impl Clone for SetupConnectionRequest
impl Clone for SetupConnectionRequest
source§fn clone(&self) -> SetupConnectionRequest
fn clone(&self) -> SetupConnectionRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetupConnectionRequest
impl Debug for SetupConnectionRequest
source§impl Default for SetupConnectionRequest
impl Default for SetupConnectionRequest
source§impl Message for SetupConnectionRequest
impl Message for SetupConnectionRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for SetupConnectionRequest
impl PartialEq for SetupConnectionRequest
source§fn eq(&self, other: &SetupConnectionRequest) -> bool
fn eq(&self, other: &SetupConnectionRequest) -> bool
self
and other
values to be equal, and is used
by ==
.