pub fn load_vm_config<S: Storage>(storage: &S) -> Result<VmConfig, Error> {
        if let Some(blob) = storage.get(&make_storage_key()) {
            let mut input = blob.as_slice();
            VmConfig::decode(&mut input).map_err(|_| Error::msg("failed to decode VMConfig."))
        } else {
            Ok(VmConfig::default())
        }
    }
/// Loads vm config from storage. Returns default configuration if the config does not exists in the storage.
Loads vm config from storage. Returns default configuration if the config does not exists in the storage.
Loads vm config from storage . Returns default configuration if the config does not exists in the storage .
pub fn load_vm_config<S: Storage>(storage: &S) -> Result<VmConfig, Error> {
        if let Some(blob) = storage.get(&make_storage_key()) {
            let mut input = blob.as_slice();
            VmConfig::decode(&mut input).map_err(|_| Error::msg("failed to decode VMConfig."))
        } else {
            Ok(VmConfig::default())
        }
    }
pub fn load_vm_config < S : Storage > ( storage : & S ) -> Result < VmConfig , Error > { if let Some ( blob ) = storage . get ( & make_storage_key ( ) ) { let mut input = blob . as_slice ( ) ; VmConfig :: decode ( & mut input ) . map_err ( | _ | Error :: msg ( " " ) ) } else { Ok ( VmConfig :: default ( ) ) } }
Loads vm config from storage.
Loads vm config from storage .
storage
&S
storage
&S