pub fn from_config_file(name: &str, config_path: &Path) -> Result<Process, IoError> {
        let config_path = config_path.canonicalize()?;
        let config = Config::read_yaml(&config_path)?;
        let run_directory = config_path.parent().unwrap();
        Process::new(name, run_directory, &config)
    }
/// Create a new `Process` from a config file.
///
/// Args:
/// * `name`: The name to associate the process with. Best practice is that process names should
/// be unique, as per the convention for automatically defining Unix socket paths.
/// * `config_path`: Path to the YAML process/station configuration. This must exist even if no
/// RPC or PubSub channels are defined in it. The directory containing this path must be
/// writable by the user ID creating the `Process` instance. Any RPC method listed in the config
/// at this path must be named as <process_name>.<rpc_name> in order for `Process` to find TCP
/// configurations when calling RPCs implemented as TCP sockets.
Create a new `Process` from a config file.
Args:
`name`: The name to associate the process with. Best practice is that process names should
be unique, as per the convention for automatically defining Unix socket paths.
`config_path`: Path to the YAML process/station configuration. This must exist even if no
RPC or PubSub channels are defined in it. The directory containing this path must be
writable by the user ID creating the `Process` instance. Any RPC method listed in the config
at this path must be named as . in order for `Process` to find TCP
configurations when calling RPCs implemented as TCP sockets.
Create a new ` Process ` from a config file . Args : ` name ` : The name to associate the process with . Best practice is that process names should be unique as per the convention for automatically defining Unix socket paths . ` config_path ` : Path to the YAML process / station configuration . This must exist even if no RPC or PubSub channels are defined in it . The directory containing this path must be writable by the user ID creating the ` Process ` instance . Any RPC method listed in the config at this path must be named as . in order for ` Process ` to find TCP configurations when calling RPCs implemented as TCP sockets .
pub fn from_config_file(name: &str, config_path: &Path) -> Result<Process, IoError> {
        let config_path = config_path.canonicalize()?;
        let config = Config::read_yaml(&config_path)?;
        let run_directory = config_path.parent().unwrap();
        Process::new(name, run_directory, &config)
    }
pub fn from_config_file ( name : & str , config_path : & Path ) -> Result < Process , IoError > { let config_path = config_path . canonicalize ( ) ? ; let config = Config :: read_yaml ( & config_path ) ? ; let run_directory = config_path . parent ( ) . unwrap ( ) ; Process :: new ( name , run_directory , & config ) }
Create a new `Process` from a config file.
Create a new ` Process ` from a config file .
name
&str
config_path
&Path
name
&str
config_path
&Path