Struct strymon_model::config::job::Process
[−]
[src]
pub struct Process { pub job_id: JobId, pub index: usize, pub addrs: Vec<String>, pub threads: usize, pub coord: String, pub hostname: String, }
The configuration of a job processes.
This is typically passed down to the spawned process by the executor.
Fields
job_id: JobId
Job this process belongs to
index: usize
Index of this process (worker group)
addrs: Vec<String>
Addresses of all worker groups of this same job
threads: usize
Number of thread this process hosts
coord: String
Address of the Strymon coordinator
hostname: String
Externally reachable hostname
Methods
impl Process
[src]
pub fn from_env() -> Result<Self, EnvError>
[src]
Decodes the process configuration from the environment, i.e. using std::env::var
.
pub fn into_env(&self) -> Vec<(&'static str, String)>
[src]
Encodes the process configuration into key-value pairs.
Suitable for use with builders such as Command::envs
.
Trait Implementations
impl Clone for Process
[src]
fn clone(&self) -> Process
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Process
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Process
[src]
fn eq(&self, __arg_0: &Process) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Process) -> bool
[src]
This method tests for !=
.