Home
last modified time | relevance | path

Searched defs:Result (Results 1 – 25 of 44) sorted by relevance

12

/DADK/dadk/src/actions/rootfs/
H A Ddisk_img.rs8 pub(super) fn create(ctx: &DADKExecContext, skip_if_exists: bool) -> Result<()> { in create()
40 pub(super) fn delete(ctx: &DADKExecContext, skip_if_not_exists: bool) -> Result<()> { in delete()
58 pub fn mount(ctx: &DADKExecContext) -> Result<()> { in mount()
87 ) -> Result<()> { in mount_partitioned_image()
109 ) -> Result<()> { in mount_unpartitioned_image()
124 pub fn umount(ctx: &DADKExecContext) -> Result<()> { in umount()
180 fn disk_path_safety_check(disk_image_path: &PathBuf) -> Result<()> { in disk_path_safety_check()
195 fn create_partitioned_image(ctx: &DADKExecContext, disk_image_path: &PathBuf) -> Result<()> { in create_partitioned_image()
214 fn create_unpartitioned_image(ctx: &DADKExecContext, disk_image_path: &PathBuf) -> Result<()> { in create_unpartitioned_image()
221 fn create_raw_img(disk_image_path: &PathBuf, image_size: usize) -> Result<()> { in create_raw_img()
[all …]
H A Dsysroot.rs5 pub(super) fn delete(ctx: &DADKExecContext) -> Result<()> { in delete()
H A Dmod.rs8 pub(super) fn run(ctx: &DADKExecContext, rootfs_cmd: &RootFSCommand) -> Result<()> { in run()
/DADK/dadk-user/src/executor/
H A Dmod.rs104 pub fn execute(&mut self) -> Result<(), ExecutorError> { in execute()
114 fn save_task_data(&self, r: Result<(), ExecutorError>) { in save_task_data()
147 fn do_execute(&mut self) -> Result<(), ExecutorError> { in do_execute()
180 fn pre_build(&mut self) -> Result<(), ExecutorError> { in pre_build()
199 fn build(&mut self) -> Result<(), ExecutorError> { in build()
223 fn post_build(&mut self) -> Result<(), ExecutorError> { in post_build()
243 fn do_build(&mut self) -> Result<(), ExecutorError> { in do_build()
262 fn install(&self) -> Result<(), ExecutorError> { in install()
291 fn do_install(&self) -> Result<(), ExecutorError> { in do_install()
324 fn clean(&self) -> Result<(), ExecutorError> { in clean()
[all …]
H A Dmod.rs291 fn do_install(&self) -> Result<(), ExecutorErro argument
101 execute(&mut self) -> Result<(), ExecutorError> execute() argument
111 save_task_data(&self, r: Result<(), ExecutorError>) save_task_data() argument
145 do_execute(&mut self) -> Result<(), ExecutorError> do_execute() argument
178 build(&mut self) -> Result<(), ExecutorError> build() argument
210 install(&self) -> Result<(), ExecutorError> install() argument
258 clean(&self) -> Result<(), ExecutorError> clean() argument
302 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
320 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
331 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
411 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
434 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
481 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
535 mv_target_to_tmp(&mut self) -> Result<(), ExecutorError> mv_target_to_tmp() argument
547 prepare_target_env(&mut self) -> Result<(), ExecutorError> prepare_target_env() argument
620 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dmod.rs101 execute(&mut self) -> Result<(), ExecutorError> execute() argument
111 save_task_data(&self, r: Result<(), ExecutorError>) save_task_data() argument
143 do_execute(&mut self) -> Result<(), ExecutorError> do_execute() argument
173 build(&mut self) -> Result<(), ExecutorError> build() argument
205 install(&self) -> Result<(), ExecutorError> install() argument
253 clean(&self) -> Result<(), ExecutorError> clean() argument
288 clean_all(&self) -> Result<(), ExecutorError> clean_all() argument
299 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
317 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
328 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
408 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
431 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
478 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
532 mv_target_to_tmp(&mut self) -> Result<(), ExecutorError> mv_target_to_tmp() argument
544 prepare_target_env(&mut self) -> Result<(), ExecutorError> prepare_target_env() argument
617 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dmod.rs104 pub fn execute(&mut self) -> Result<(), ExecutorError> { in execute() argument
114 fn save_task_data(&self, r: Result<(), ExecutorError>) { in save_task_data() argument
146 do_execute(&mut self) -> Result<(), ExecutorError> do_execute() argument
175 build(&mut self) -> Result<(), ExecutorError> build() argument
195 do_build(&mut self) -> Result<(), ExecutorError> do_build() argument
214 install(&self) -> Result<(), ExecutorError> install() argument
234 do_install(&self) -> Result<(), ExecutorError> do_install() argument
267 clean(&self) -> Result<(), ExecutorError> clean() argument
302 clean_all(&self) -> Result<(), ExecutorError> clean_all() argument
313 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
331 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
342 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
422 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
442 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
489 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
604 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dmod.rs101 execute(&mut self) -> Result<(), ExecutorError> execute() argument
111 save_task_data(&self, r: Result<(), ExecutorError>) save_task_data() argument
143 do_execute(&mut self) -> Result<(), ExecutorError> do_execute() argument
173 build(&mut self) -> Result<(), ExecutorError> build() argument
203 install(&self) -> Result<(), ExecutorError> install() argument
246 clean(&self) -> Result<(), ExecutorError> clean() argument
281 clean_all(&self) -> Result<(), ExecutorError> clean_all() argument
292 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
310 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
321 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
401 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
421 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
468 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
583 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dmod.rs104 pub fn execute(&mut self) -> Result<(), ExecutorError> { in execute() argument
114 fn save_task_data(&self, r: Result<(), ExecutorError>) { in save_task_data() argument
147 fn do_execute(&mut self) -> Result<(), ExecutorError> { in do_execute() argument
176 build(&mut self) -> Result<(), ExecutorError> build() argument
201 do_build(&mut self) -> Result<(), ExecutorError> do_build() argument
220 install(&self) -> Result<(), ExecutorError> install() argument
249 do_install(&self) -> Result<(), ExecutorError> do_install() argument
282 clean(&self) -> Result<(), ExecutorError> clean() argument
317 clean_all(&self) -> Result<(), ExecutorError> clean_all() argument
328 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
346 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
357 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
437 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
457 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
504 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
619 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dmod.rs104 pub fn execute(&mut self) -> Result<(), ExecutorError> { in execute() argument
114 fn save_task_data(&self, r: Result<(), ExecutorError>) { in save_task_data() argument
147 fn do_execute(&mut self) -> Result<(), ExecutorError> { in do_execute() argument
176 build(&mut self) -> Result<(), ExecutorError> build() argument
201 do_build(&mut self) -> Result<(), ExecutorError> do_build() argument
220 install(&self) -> Result<(), ExecutorError> install() argument
246 do_install(&self) -> Result<(), ExecutorError> do_install() argument
279 clean(&self) -> Result<(), ExecutorError> clean() argument
314 clean_all(&self) -> Result<(), ExecutorError> clean_all() argument
325 clean_src(&self) -> Result<(), ExecutorError> clean_src() argument
343 clean_target(&self) -> Result<(), ExecutorError> clean_target() argument
354 clean_cache(&self) -> Result<(), ExecutorError> clean_cache() argument
434 prepare_local_env(&mut self) -> Result<(), ExecutorError> prepare_local_env() argument
454 prepare_input(&self) -> Result<(), ExecutorError> prepare_input() argument
501 run_command(&self, mut command: Command) -> Result<(), ExecutorError> run_command() argument
616 prepare_env( sched_entities: &SchedEntities, execute_ctx: &Arc<DadkUserExecuteContext>, ) -> Result<(), ExecutorError> prepare_env() argument
[all...]
H A Dsource.rs41 validate(&mut self) -> Result<(), String> validate() argument
90 prepare(&self, target_dir: &CacheDir) -> Result<(), String> prepare() argument
149 set_url(&self, target_dir: &CacheDir) -> Result<(), String> set_url() argument
177 checkout(&self, target_dir: &CacheDir) -> Result<(), String> checkout() argument
254 clone_repo(&self, cache_dir: &CacheDir) -> Result<(), String> clone_repo() argument
313 set_fetch_config(&self, target_dir: &CacheDir) -> Result<(), String> set_fetch_config() argument
337 unshallow(&self, target_dir: &CacheDir) -> Result<(), String> unshallow() argument
389 fetch_all(&self, target_dir: &CacheDir) -> Result<(), String> fetch_all() argument
416 pull(&self, target_dir: &CacheDir) -> Result<(), String> pull() argument
463 validate(&self, expect_file: Option<bool>) -> Result<(), String> validate() argument
500 validate(&self) -> Result<(), String> validate() argument
529 download_unzip(&self, target_dir: &CacheDir) -> Result<(), String> download_unzip() argument
604 unzip(&self) -> Result<(), String> unzip() argument
[all...]
H A Dsource.rs43 pub fn validate(&mut self) -> Result<()> { in validate()
92 pub fn prepare(&self, target_dir: &CacheDir) -> Result<(), String> { in prepare()
151 fn set_url(&self, target_dir: &CacheDir) -> Result<(), String> { in set_url()
179 fn checkout(&self, target_dir: &CacheDir) -> Result<(), String> { in checkout()
256 pub fn clone_repo(&self, cache_dir: &CacheDir) -> Result<(), String> { in clone_repo()
315 fn set_fetch_config(&self, target_dir: &CacheDir) -> Result<(), String> { in set_fetch_config()
339 fn unshallow(&self, target_dir: &CacheDir) -> Result<(), String> { in unshallow()
391 fn fetch_all(&self, target_dir: &CacheDir) -> Result<(), String> { in fetch_all()
418 fn pull(&self, target_dir: &CacheDir) -> Result<(), String> { in pull()
465 pub fn validate(&self, expect_file: Option<bool>) -> Result<()> { in validate()
[all …]
H A Dtarget.rs
H A Dcache.rs26 pub fn cache_root_init(path: Option<PathBuf>) -> Result<(), ExecutorError> { in cache_root_init() argument
197 create(&self) -> Result<(), ExecutorError> create() argument
234 remove_self_recursive(&self) -> Result<(), ExecutorError> remove_self_recursive() argument
268 save_task_log(&self, task_log: &TaskLog) -> Result<(), ExecutorError> save_task_log() argument
[all...]
H A Dcache.rs26 pub fn cache_root_init(path: Option<PathBuf>) -> Result<(), ExecutorError> { in cache_root_init()
196 pub fn create(&self) -> Result<(), ExecutorError> { in create()
233 pub fn remove_self_recursive(&self) -> Result<(), ExecutorError> { in remove_self_recursive()
267 pub fn save_task_log(&self, task_log: &TaskLog) -> Result<(), ExecutorError> { in save_task_log()
/DADK/dadk-user/src/parser/
H A Dtask.rs105 pub fn validate(&mut self) -> Result<()> { in validate()
136 fn validate_depends(&self) -> Result<()> { in validate_depends()
149 fn validate_envs(&self) -> Result<()> { in validate_envs()
158 fn validate_target_arch(&self) -> Result<()> { in validate_target_arch()
174 fn validate_build_type(&self) -> Result<()> { in validate_build_type()
268 pub fn validate(&mut self) -> Result<()> { in validate()
327 pub fn validate(&mut self) -> Result<()> { in validate()
353 pub fn validate(&self) -> Result<()> { in validate()
H A Dtask.rs107 validate(&mut self) -> Result<(), String> validate() argument
141 validate_depends(&self) -> Result<(), String> validate_depends() argument
154 validate_envs(&self) -> Result<(), String> validate_envs() argument
163 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
179 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
273 validate(&self) -> Result<(), String> validate() argument
304 validate(&self) -> Result<(), String> validate() argument
338 validate(&self) -> Result<(), String> validate() argument
370 validate(&self) -> Result<(), String> validate() argument
400 validate(&mut self) -> Result<(), String> validate() argument
493 validate(&mut self) -> Result<(), String> validate() argument
519 validate(&self) -> Result<(), String> validate() argument
562 validate(&self) -> Result<(), String> validate() argument
[all...]
H A Dtask.rs98 validate(&mut self) -> Result<(), String> validate() argument
132 validate_depends(&self) -> Result<(), String> validate_depends() argument
145 validate_envs(&self) -> Result<(), String> validate_envs() argument
154 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
170 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
246 validate(&self) -> Result<(), String> validate() argument
269 validate(&self) -> Result<(), String> validate() argument
295 validate(&self) -> Result<(), String> validate() argument
319 validate(&self) -> Result<(), String> validate() argument
349 validate(&mut self) -> Result<(), String> validate() argument
376 validate(&mut self) -> Result<(), String> validate() argument
402 validate(&self) -> Result<(), String> validate() argument
445 validate(&self) -> Result<(), String> validate() argument
[all...]
H A Dtask.rs106 validate(&mut self) -> Result<(), String> validate() argument
140 validate_depends(&self) -> Result<(), String> validate_depends() argument
153 validate_envs(&self) -> Result<(), String> validate_envs() argument
162 validate_target_arch(&self) -> Result<(), String> validate_target_arch() argument
178 validate_build_type(&self) -> Result<(), String> validate_build_type() argument
272 validate(&self) -> Result<(), String> validate() argument
303 validate(&self) -> Result<(), String> validate() argument
337 validate(&self) -> Result<(), String> validate() argument
369 validate(&self) -> Result<(), String> validate() argument
399 validate(&mut self) -> Result<(), String> validate() argument
492 validate(&mut self) -> Result<(), String> validate() argument
518 validate(&self) -> Result<(), String> validate() argument
561 validate(&self) -> Result<(), String> validate() argument
[all...]
/DADK/dadk-user/src/utils/
H A Dfile.rs15 pub fn download_file(url: &str, path: &Path) -> Result<(), Box<dyn std::error::Error>> { in download_file() argument
32 pub fn move_files(src: &Path, dst: &Path) -> std::io::Result<()> { in move_files() argument
48 pub fn copy_dir_all(src: &Path, dst: &Path) -> Result<(), String> { in copy_dir_all() argument
H A Dfile.rs15 pub fn download_file(url: &str, path: &Path) -> Result<(), Box<dyn std::error::Error>> { in download_file()
32 pub fn move_files(src: &Path, dst: &Path) -> std::io::Result<()> { in move_files()
48 pub fn copy_dir_all(src: &Path, dst: &Path) -> Result<(), String> { in copy_dir_all()
/DADK/dadk-config/src/common/
H A Dtask.rs57 validate(&self) -> Result<()> validate() argument
81 validate(&self) -> Result<()> validate() argument
109 validate(&self) -> Result<()> validate() argument
135 validate(&self) -> Result<()> validate() argument
185 validate(&self) -> Result<()> validate() argument
H A Dtask.rs71 pub fn validate(&self) -> Result<()> { in validate()
95 pub fn validate(&self) -> Result<()> { in validate()
123 pub fn validate(&self) -> Result<()> { in validate()
149 pub fn validate(&self) -> Result<()> { in validate()
199 pub fn validate(&self) -> Result<()> { in validate()
/DADK/dadk/src/context/
H A Dmanifest.rs9 pub(super) fn parse_manifest(builder: &mut DADKExecContextBuilder) -> Result<()> { in parse_manifest()
/DADK/dadk-user/src/console/
H A Dinteractive.rs

12