/DADK/dadk-config/src/rootfs/ |
H A D | fstype.rs | 10 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize() 18 _ => Err(serde::de::Error::custom("invalid fs type")), in deserialize() 28 fn deserialize_fs_type(input: &str) -> Result<FsType, serde_json::Error> { in deserialize_fs_type() 27 deserialize_fs_type(input: &str) -> Result<FsType, serde_json::Error> deserialize_fs_type() argument
|
H A D | fstype.rs | 10 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize() 18 _ => Err(serde::de::Error::custom("invalid fs type")), in deserialize() 28 fn deserialize_fs_type(input: &str) -> Result<FsType, serde_json::Error> { in deserialize_fs_type() argument
|
/DADK/dadk-user/src/parser/ |
H A D | task.rs | 107 return Err(anyhow::Error::msg("name is empty")); in validate() 110 return Err(anyhow::Error::msg("version is empty")); in validate() 160 return Err(anyhow::Error::msg("target_arch is empty")); in validate_target_arch() 178 return Err(anyhow::Error::msg("build command is empty")); in validate_build_type() 183 return Err(anyhow::Error::msg( in validate_build_type() 238 type Error = anyhow::Error; typedef 284 type Error = anyhow::Error; typedef 301 Source::Git => Err(anyhow::Error::msg( in try_from()
|
H A D | config.rs |
|
H A D | config.rs |
|
H A D | task_log.rs | 25 fn ok_or_default<'a, T, D>(deserializer: D) -> Result<T, D::Error> in ok_or_default() 101 fn deserialize<D>(deserializer: D) -> Result<BuildStatus, D::Error> in deserialize() 127 fn deserialize<D>(deserializer: D) -> Result<InstallStatus, D::Error> in deserialize()
|
H A D | task.rs | 107 return Err(anyhow::Error::msg("name is empty")); in validate() 110 return Err(anyhow::Error::msg("version is empty")); in validate() 160 return Err(anyhow::Error::msg("target_arch is empty")); in validate_envs() 178 return Err(anyhow::Error::msg("build command is empty")); in validate_build_type() 183 return Err(anyhow::Error::msg( in validate_build_type() 238 type Error = anyhow::Error; in source_path() 284 type Error = anyhow::Error; in from() 301 Source::Git => Err(anyhow::Error in new() 415 type Error = ParserError; global() typedef 416 try_from(dadk_user_task_type: DADKUserTaskType) -> Result<Self, Self::Error> try_from() argument 590 type Error = String; global() typedef 592 try_from(value: &str) -> Result<Self, Self::Error> try_from() argument [all...] |
H A D | task_log.rs | 25 fn ok_or_default<'a, T, D>(deserializer: D) -> Result<T, D::Error> in ok_or_default() 101 fn deserialize<D>(deserializer: D) -> Result<BuildStatus, D::Error> in deserialize() 127 fn deserialize<D>(deserializer: D) -> Result<InstallStatus, D::Error> in deserialize()
|
H A D | task.rs | 107 return Err(anyhow::Error::msg("name is empty")); in validate() 110 return Err(anyhow::Error::msg("version is empty")); in validate() 160 return Err(anyhow::Error::msg("target_arch is empty")); in validate_envs() 178 return Err(anyhow::Error::msg("build command is empty")); 183 return Err(anyhow::Error::msg( in validate_build_type() 238 type Error = anyhow::Error; in source_path() 284 type Error = anyhow::Error; 301 Source::Git => Err(anyhow::Error in new() 416 type Error = ParserError; global() typedef 417 try_from(dadk_user_task_type: DADKUserTaskType) -> Result<Self, Self::Error> try_from() argument [all...] |
H A D | task.rs | 107 return Err(anyhow::Error::msg("name is empty")); in validate() 110 return Err(anyhow::Error::msg("version is empty")); in validate() 160 return Err(anyhow::Error::msg("target_arch is empty")); 178 return Err(anyhow::Error::msg("build command is empty")); in validate_build_type() 183 return Err(anyhow::Error::msg( in validate_build_type() 238 type Error = anyhow::Error; 284 type Error = anyhow::Error; 301 Source::Git => Err(anyhow::Error in trim() 474 type Error = String; global() typedef 476 try_from(value: &str) -> Result<Self, Self::Error> try_from() argument [all...] |
H A D | mod.rs | 82 "IO Error while parsing config file {}: {}", in fmt() 87 write!(f, "IO Error while parsing config files: {}", e) in fmt() 94 "Toml Error while parsing config file {}: {}", in fmt() 99 write!(f, "Toml Error while parsing config file: {}", e) in fmt() 106 "Error while parsing config file {}: {}", in fmt() 111 write!(f, "Error while parsing config file: {}", e) in fmt() 120 IoError(std::io::Error), 121 TomlError(toml::de::Error), 148 error!("Error while parsing config files: {:?}", r); in parse()
|
H A D | mod.rs | 120 IoError(std::io::Error), 121 TomlError(toml::de::Error),
|
/DADK/dadk-config/src/common/ |
H A D | target_arch.rs | 18 type Error = String; in default() 20 fn try_from(value: &str) -> Result<Self, Self::Error> { 48 fn deserialize<D>(deserializer: D) -> Result<TargetArch, D::Error> 57 Err(_) => Err(serde::de::Error::invalid_value( in deserialize() 66 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 22 type Error = String; global() typedef 24 try_from(value: &str) -> Result<Self, Self::Error> try_from() argument
|
H A D | target_arch.rs | 18 type Error = String; 20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() 48 fn deserialize<D>(deserializer: D) -> Result<TargetArch, D::Error> in deserialize() 57 Err(_) => Err(serde::de::Error::invalid_value( in deserialize() 66 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize() 17 type Error = String; global() typedef 19 try_from(value: &str) -> Result<Self, Self::Error> try_from() argument
|
H A D | target_arch.rs | 18 type Error = String; typedef 20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument 48 fn deserialize<D>(deserializer: D) -> Result<TargetArch, D::Error> in deserialize() 57 Err(_) => Err(serde::de::Error::invalid_value( in deserialize() 66 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
|
H A D | task.rs | 1 use anyhow::{Error, Result}; 100 return Err(Error::msg( 151 return Err(Error::msg("name is empty")); in name_version() 154 return Err(Error::msg("version is empty")); 201 return Err(Error::msg("Env: key is empty"));
|
H A D | task.rs | 1 use anyhow::{Error, Result}; 100 return Err(Error::msg( in validate() 151 return Err(Error::msg("name is empty")); in validate() 154 return Err(Error::msg("version is empty")); in validate() 201 return Err(Error::msg("Env: key is empty")); in validate()
|
/DADK/dadk-config/src/rootfs/utils/ |
H A D | size.rs | 17 /// 返回一个`Result<usize, D::Error>`,其中: 19 /// - `Err(D::Error)`表示解析失败,返回错误信息。 24 pub fn deserialize_size<'de, D>(deserializer: D) -> Result<usize, D::Error> in deserialize_size() 40 .ok_or_else(|| serde::de::Error::custom("Invalid string for size")) in deserialize_size() 42 _ => Err(serde::de::Error::custom("Invalid type for size")), in deserialize_size()
|
H A D | size.rs | 24 pub fn deserialize_size<'de, D>(deserializer: D) -> Result<usize, D::Error> in deserialize_size() 40 .ok_or_else(|| serde::de::Error::custom("Invalid string for size")) in deserialize_size() 42 _ => Err(serde::de::Error::custom("Invalid type for size")), in deserialize_size()
|
/DADK/dadk-config/src/boot/hypervisor/ |
H A D | qemu.rs | 265 let result: Result<QemuAccel, serde_json::Error> = serde_json::from_str(s); in test_qemu_accelerate_args() 272 let result: Result<QemuAccel, serde_json::Error> = serde_json::from_str(s); in test_qemu_accelerate_args() 279 let result: Result<QemuAccel, serde_json::Error> = serde_json::from_str(s); in test_qemu_accelerate_args() 286 let result: Result<QemuAccel, serde_json::Error> = serde_json::from_str(s); in test_qemu_accelerate_args() 293 let result: Result<QemuAccel, serde_json::Error> = serde_json::from_str(s); in test_qemu_accelerate_args()
|
H A D | hyp_type.rs | 11 fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> in deserialize() 19 _ => Err(serde::de::Error::custom(format!( in deserialize()
|
/DADK/dadk-config/src/hypervisor/ |
H A D | hyp_type.rs |
|
/DADK/dadk-user/src/executor/ |
H A D | source.rs | 17 use anyhow::{Error, Result}; 45 return Err(Error::msg("url is empty")); in validate() 53 return Err(Error::msg("branch and revision are both specified")); in validate() 58 return Err(Error::msg("branch is empty")); in validate() 63 return Err(Error::msg("revision is empty")); in validate() 467 return Err(Error::msg(format!("path {:?} not exists", self.path))); in validate() 472 return Err(Error::msg(format!("path {:?} is not a file", self.path))); in validate() 476 return Err(Error::msg(format!( in validate() 507 return Err(Error::msg("url is empty")); in validate() 513 return Err(Error::msg(format!( in validate() [all …]
|
H A D | cache.rs | 41 std::io::Error::new( in cache_root_init() 56 std::io::Error::new( in cache_root_init() 74 std::io::Error::new( in cache_root_init() 205 std::io::Error::new( in create()
|
H A D | cache.rs | 41 std::io::Error::new( in cache_root_init() 56 std::io::Error::new( in cache_root_init() 74 std::io::Error::new( in cache_root_init() 205 std::io::Error::new( in create()
|