pub fn load(file: &str) -> Result<ArrowConfig> {
        let json      = try!(JsonConfig::load(file));
        let uuid      = try!(Uuid::parse_str(&json.uuid));
        let passwd    = try!(Uuid::parse_str(&json.passwd));
        let svc_table = json.svc_table.into_owned();
        
        let res = ArrowConfig {
            uuid:      uuid,
            passwd:    passwd,
            version:   json.version,
            svc_table: svc_table
        };
        
        Ok(res)
    }
/// Load configuration from a given file.
Load configuration from a given file.
Load configuration from a given file .
pub fn load(file: &str) -> Result<ArrowConfig> {
        let json      = try!(JsonConfig::load(file));
        let uuid      = try!(Uuid::parse_str(&json.uuid));
        let passwd    = try!(Uuid::parse_str(&json.passwd));
        let svc_table = json.svc_table.into_owned();
        let res = ArrowConfig {
            uuid:      uuid,
            passwd:    passwd,
            version:   json.version,
            svc_table: svc_table
        };
        Ok(res)
    }
pub fn load ( file : & str ) -> Result < ArrowConfig > { let json = try ! ( JsonConfig load ( file ) ) ; let uuid = try ! ( Uuid parse_str ( json uuid ) ) ; let passwd = try ! ( Uuid parse_str ( json passwd ) ) ; let svc_table = json . svc_table . into_owned ( ) ; let res = ArrowConfig { uuid : uuid , passwd : passwd , version : json . version , svc_table : svc_table } ; Ok ( res ) }
Load configuration from a given file.
Load configuration from a given file .
file
&str
file
&str