pub struct SpawnDaemonRequest {
pub command: String,
pub cwd: String,
pub env: Vec<KeyValue>,
pub originator: String,
pub clear_inherited_env: bool,
pub environment_policy: i32,
}Fields§
§command: String§cwd: String§env: Vec<KeyValue>Environment variables applied after environment_policy selects the
base. Legacy requests that omit that enum retain the old boolean
semantics: false inherits the daemon environment; true starts empty.
Ordering: this is repeated KeyValue, not a map, because the
daemon needs to dedup case-insensitively on Windows where Rust’s
Command::env collapses “PATH” and “Path” into one slot. The LAST
entry per case-folded key wins. Using a map here would lose the
ordering protobuf provides and race the dedup against HashMap
iteration order.
Practical note for Windows callers: a clear base generally needs the client snapshot (including SystemRoot) serialized into this list.
originator: String§clear_inherited_env: boolDeprecated compatibility field. New clients dual-write it for old servers.
environment_policy: i32Implementations§
Source§impl SpawnDaemonRequest
impl SpawnDaemonRequest
Sourcepub fn environment_policy(&self) -> EnvironmentPolicy
pub fn environment_policy(&self) -> EnvironmentPolicy
Returns the enum value of environment_policy, or the default if the field is set to an invalid enum value.
Sourcepub fn set_environment_policy(&mut self, value: EnvironmentPolicy)
pub fn set_environment_policy(&mut self, value: EnvironmentPolicy)
Sets environment_policy to the provided enum value.
Trait Implementations§
Source§impl Clone for SpawnDaemonRequest
impl Clone for SpawnDaemonRequest
Source§fn clone(&self) -> SpawnDaemonRequest
fn clone(&self) -> SpawnDaemonRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpawnDaemonRequest
impl Debug for SpawnDaemonRequest
Source§impl Default for SpawnDaemonRequest
impl Default for SpawnDaemonRequest
Source§impl Message for SpawnDaemonRequest
impl Message for SpawnDaemonRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.