Home
last modified time | relevance | path

Searched refs:Ok (Results 1 – 25 of 67) sorted by relevance

123

/DADK/dadk-user/src/parser/
H A Dconfig.rs
H A Dconfig.rs
H A Dtask_log.rs32 Ok(r.unwrap_or_default()) in ok_or_default()
107 "success" => Ok(BuildStatus::Success),
108 "failed" => Ok(BuildStatus::Failed),
111 Ok(BuildStatus::Failed)
133 "success" => Ok(InstallStatus::Success),
134 "failed" => Ok(InstallStatus::Failed),
137 Ok(InstallStatus::Failed)
H A Dtask_log.rs32 Ok(r.unwrap_or_default()) in ok_or_default()
107 "success" => Ok(BuildStatus::Success), in deserialize()
108 "failed" => Ok(BuildStatus::Failed), in deserialize()
111 Ok(BuildStatus::Failed) in deserialize()
133 "success" => Ok(InstallStatus::Success), in deserialize()
134 "failed" => Ok(InstallStatus::Failed), in deserialize()
137 Ok(InstallStatus::Failed) in deserialize()
H A Dtask.rs16 use anyhow::{Ok, Result};
121 return Ok(()); in trim()
140 return Ok(()); in trim_depends()
155 return Ok(()); in validate_target_arch()
162 return Ok(()); in trim_envs()
189 return Ok(()); in name_version()
241 Ok(DADKTask {
288 Source::Git => Ok(TaskType::BuildFromSource(CodeSource::Git(GitSource::new(
293 Source::Local => Ok(TaskType::BuildFromSource(CodeSource::Local( in new()
296 Source::Archive => Ok(TaskTyp in validate()
524 serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: serde::Serializer, serialize() argument
[all...]
H A Dtask.rs16 use anyhow::{Ok, Result};
121 return Ok(()); in validate()
140 return Ok(()); in validate_depends()
155 return Ok(()); in validate_envs()
162 return Ok(()); in validate_target_arch()
189 return Ok(()); in validate_build_type()
241 Ok(DADKTask {
288 Source::Git => Ok(TaskType::BuildFromSource(CodeSource::Git(GitSource::new( in from()
293 Source::Local => Ok(TaskType::BuildFromSource(CodeSource::Local(
296 Source::Archive => Ok(TaskTyp
640 serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: serde::Serializer, serialize() argument
[all...]
H A Dtask.rs16 use anyhow::{Ok, Result};
121 return Ok(()); in validate()
140 return Ok(()); in validate_depends()
155 return Ok(()); in validate_envs()
162 return Ok(()); in validate_target_arch()
189 return Ok(()); in validate_build_type()
241 Ok(DADKTask { in try_from()
288 Source::Git => Ok(TaskType::BuildFromSource(CodeSource::Git(GitSource::new( in try_from()
293 Source::Local => Ok(TaskType::BuildFromSource(CodeSource::Local( in try_from()
296 Source::Archive => Ok(TaskType::BuildFromSource(CodeSource::Archive( in try_from()
[all …]
/DADK/dadk-user/src/console/
H A Dnew_config.rs
H A Dclean.rs
H A Delements.rs
/DADK/dadk/src/actions/rootfs/
H A Ddisk_img.rs12 return Ok(()); in create()
44 return Ok(()); in delete()
55 Ok(()) in delete()
80 Ok(()) in mount()
102 Ok(()) in mount_partitioned_image()
121 Ok(()) in mount_unpartitioned_image()
130 if let Ok(loop_device) = loop_device.as_mut() { in umount()
146 Ok(cmd) => { in umount()
169 if let Ok(mut loop_device) = loop_device { in umount()
176 Ok(()) in umount()
[all …]
H A Dloopdev.rs28 return Ok(()); in attach()
49 Ok(()) in attach()
61 return Ok(()); in attach_by_exists()
82 Ok(()) in attach_by_exists()
108 Ok(s) in partition_path()
113 return Ok(()); in detach()
129 Ok(()) in detach()
192 Ok(loop_dev) in build()
212 return Ok(loop_device); in __loop_device_path_by_disk_image_path()
/DADK/dadk-user/src/executor/
H A Dmod.rs92 return Ok(result); in new()
177 return Ok(()); in do_execute()
196 Ok(()) in pre_build()
215 return Ok(()); in build()
239 Ok(()) in post_build()
259 return Ok(()); in do_build()
279 return Ok(()); in install()
296 return Ok(()); in do_install()
321 return Ok(()); in do_install()
356 return Ok(()); in clean()
[all …]
H A Dtarget.rs
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功 in new()
92 return Ok(result);
177 return Ok(());
196 Ok(()) in build()
215 return Ok(()); in install()
239 Ok(()) in install()
259 return Ok(()); in clean()
279 return Ok(()); in clean()
296 return Ok(()); in clean_all()
321 return Ok(()); in clean_target()
[all...]
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功 in new()
92 return Ok(result);
177 return Ok(()); in build()
196 Ok(()) in build()
215 return Ok(()); in install()
239 Ok(()) in install()
259 return Ok(()); in clean()
279 return Ok(()); in clean()
296 return Ok(()); in clean_all()
321 return Ok(()); in clean_target()
[all...]
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功
92 return Ok(result); in new()
177 return Ok(()); in build()
196 Ok(()) in build()
215 return Ok(()); in do_build()
239 Ok(()) in install()
259 return Ok(()); in do_install()
279 return Ok(()); in do_install()
296 return Ok(()); in clean()
321 return Ok(()); in clean_all()
[all...]
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功
92 return Ok(result); in new()
177 return Ok(()); in build()
196 Ok(()) in build()
215 return Ok(()); in do_build()
239 Ok(()) in install()
259 return Ok(()); in do_install()
279 return Ok(()); in clean()
296 return Ok(()); in clean()
321 return Ok(()); in clean_all()
[all...]
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功
92 return Ok(result); in new()
177 return Ok(()); in build()
196 Ok(()) in do_build()
215 return Ok(()); in install()
239 Ok(()) in do_install()
259 return Ok(()); in do_install()
279 return Ok(()); in clean()
296 return Ok(()); in clean()
321 return Ok(()); in clean_src()
[all...]
H A Dmod.rs65 /// * `Ok(Executor)` - 创建成功 in new()
92 return Ok(result);
177 return Ok(()); in build()
196 Ok(()) in build()
215 return Ok(()); in install()
239 Ok(()) in install()
259 return Ok(()); in clean()
279 return Ok(()); in clean()
296 return Ok(()); in clean_src()
321 return Ok(()); in clean_cache()
[all...]
H A Dcache.rs89 return Ok(()); in cache_root_init()
125 return Ok(result); in new()
150 return Ok(Self::new(entity.clone(), CacheDirType::Build)?.path); in build_dir()
154 return Ok(Self::new(entity.clone(), CacheDirType::Source)?.path); in source_dir()
159 return Ok(format!( in build_dir_env_key()
168 return Ok(format!( in source_dir_env_key()
213 return Ok(()); in create()
223 return Ok(false); in is_empty()
226 return Ok(true); in is_empty()
238 return Ok(()); in remove_self_recursive()
[all...]
H A Dcache.rs89 return Ok(()); in cache_root_init()
125 return Ok(result); in new()
150 return Ok(Self::new(entity.clone(), CacheDirType::Build)?.path); in build_dir()
154 return Ok(Self::new(entity.clone(), CacheDirType::Source)?.path); in source_dir()
159 return Ok(format!( in build_dir_env_key()
168 return Ok(format!( in source_dir_env_key()
213 return Ok(()); in create()
223 return Ok(false); in is_empty()
226 return Ok(true); in is_empty()
238 return Ok(()); in remove_self_recursive()
[all …]
/DADK/dadk-config/src/
H A Dmanifest.rs35 Ok(manifest_toml)
168 Ok(())
196 Ok(())
216 Ok(())
235 Ok(())
263 Ok(())
/DADK/dadk-config/src/boot/hypervisor/
H A Dqemu.rs62 Ok(()) in apply_qemu_args()
121 Ok(()) in check_qemu_arg()
170 Ok(()) in test_apply_qemu_args()
192 Ok(()) in test_check_qemu_arg_valid()
220 Ok(()) in test_apply_qemu_args_multi_value_keys()
241 Ok(()) in test_check_qemu_arg_multi_value_keys_valid()
267 Ok(QemuAccel::Kvm) => assert!(true), in test_qemu_accelerate_args()
274 Ok(QemuAccel::Tcg) => assert!(true), in test_qemu_accelerate_args()
281 Ok(QemuAccel::None) => assert!(true), in test_qemu_accelerate_args()
288 Ok(QemuAccel::Hvf) => assert!(true), in test_qemu_accelerate_args()
/DADK/dadk-config/src/common/
H A Dtarget_arch.rs22 "x86_64" => Ok(TargetArch::X86_64), in try_from()
23 "riscv64" => Ok(TargetArch::RiscV64), in try_from()
24 "aarch64" => Ok(TargetArch::AArch64), in try_from()
56 Ok(v) => Ok(v), in deserialize()
66 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize() argument

123