Home
last modified time | relevance | path

Searched refs:catch_unwind (Results 1 – 25 of 59) sorted by relevance

123

/external/crosvm/libcrosvm_control/src/
Dlib.rs10 use std::panic::catch_unwind;
34 catch_unwind(|| { in crosvm_client_stop_vm()
49 catch_unwind(|| { in crosvm_client_suspend_vm()
64 catch_unwind(|| { in crosvm_client_resume_vm()
80 catch_unwind(|| { in crosvm_client_balloon_vms()
130 catch_unwind(|| { in crosvm_client_usb_list()
178 catch_unwind(|| { in crosvm_client_usb_attach()
208 catch_unwind(|| { in crosvm_client_usb_detach()
229 catch_unwind(|| { in crosvm_client_modify_battery()
261 catch_unwind(|| { in crosvm_client_resize_disk()
[all …]
/external/rust/crates/async-task/tests/
Dpanic.rs2 use std::panic::catch_unwind;
91 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_during_run()
115 assert!(catch_unwind(|| runnable.run()).is_err()); in run_and_join()
121 assert!(catch_unwind(|| future::block_on(task)).is_err()); in run_and_join()
140 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_and_run_and_join()
146 assert!(catch_unwind(|| future::block_on(task)).is_err()); in try_join_and_run_and_join()
161 assert!(catch_unwind(|| runnable.run()).is_err()); in join_during_run()
172 assert!(catch_unwind(|| future::block_on(task)).is_err()); in join_during_run()
191 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_during_run()
218 assert!(catch_unwind(|| runnable.run()).is_err()); in detach_during_run()
Dwaker_panic.rs3 use std::panic::{catch_unwind, AssertUnwindSafe};
120 assert!(catch_unwind(|| runnable.run()).is_err()); in wake_during_run()
163 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_during_run()
205 assert!(catch_unwind(|| runnable.run()).is_err()); in wake_and_cancel_during_run()
254 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_and_wake_during_run()
307 assert!(catch_unwind(|| runnable.run()).is_err()); in panic_and_poll()
313 assert!(catch_unwind(AssertUnwindSafe(|| try_await(&mut task))).is_err()); in panic_and_poll()
Djoin.rs3 use std::panic::{catch_unwind, AssertUnwindSafe};
108 assert!(catch_unwind(|| future::block_on(task)).is_err()); in drop_and_join()
127 assert!(catch_unwind(|| future::block_on(task)).is_ok()); in run_and_join()
172 assert!(catch_unwind(AssertUnwindSafe(|| future::block_on(&mut task))).is_err()); in join_twice()
202 assert!(catch_unwind(|| future::block_on(task)).is_err()); in join_and_cancel()
/external/rust/cxx/src/
Dunwind.rs5 pub fn catch_unwind<F, R>(label: &'static str, foreign_call: F) -> R in catch_unwind() function
13 match panic::catch_unwind(AssertUnwindSafe(foreign_call)) { in catch_unwind()
/external/rust/crates/rusqlite/src/
Dtrace.rs6 use std::panic::catch_unwind;
34 let _ = catch_unwind(|| callback(err, &s)); in config_log()
77 let _ = catch_unwind(|| trace_fn(&s)); in trace()
111 let _ = catch_unwind(|| profile_fn(&s, duration)); in profile()
Dhooks.rs5 use std::panic::catch_unwind;
94 let r = catch_unwind(|| { in commit_hook()
143 let _ = catch_unwind(|| { in rollback_hook()
202 let _ = catch_unwind(|| { in update_hook()
Dcollation.rs4 use std::panic::{catch_unwind, UnwindSafe};
56 let r = catch_unwind(|| { in create_collation()
119 let res = catch_unwind(|| { in collation_needed()
Dunlock_notify.rs7 use std::panic::catch_unwind;
49 let _ = catch_unwind(std::panic::AssertUnwindSafe(|| un.fired())); in unlock_notify_cb()
Dbusy.rs5 use std::panic::catch_unwind;
54 if let Ok(true) = catch_unwind(|| handler_fn(count)) { in busy_handler()
/external/rust/crates/scopeguard/patches/
Ddisable_panic_tests.patch12 let _ = catch_unwind(AssertUnwindSafe(|| {
20 let _ = catch_unwind(AssertUnwindSafe(|| {
/external/rust/crates/futures-util/src/future/future/
Dcatch_unwind.rs3 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe};
32 catch_unwind(AssertUnwindSafe(|| f.poll(cx)))?.map(Ok) in poll()
Dmod.rs98 mod catch_unwind; module
101 pub use self::catch_unwind::CatchUnwind;
431 fn catch_unwind(self) -> CatchUnwind<Self> in catch_unwind() method
/external/rust/crates/async-task/examples/
Dspawn.rs4 use std::panic::catch_unwind;
25 let _ignore_panic = catch_unwind(|| runnable.run()); in spawn()
/external/rust/crates/futures/tests/
Dstream_catch_unwind.rs10 let mut iter = block_on_stream(stream_panicking.catch_unwind()); in panic_in_the_middle_of_the_stream()
24 let mut iter = block_on_stream(stream.catch_unwind()); in no_panic()
/external/rust/crates/futures-util/src/stream/stream/
Dcatch_unwind.rs6 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe};
39 let res = catch_unwind(AssertUnwindSafe(|| { in poll_next()
/external/libchromeos-rs/src/
Dscoped_path.rs67 use std::panic::catch_unwind;
104 assert!(catch_unwind(|| { in scopedpath_panic()
/external/crosvm/sys_util/src/
Dscoped_path.rs75 use std::panic::catch_unwind;
127 assert!(catch_unwind(|| { in scopedpath_panic()
/external/rust/crates/rayon/tests/
Dcollect.rs28 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind()
85 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind_zst()
/external/rust/crates/parking_lot/src/
Donce.rs391 let t = panic::catch_unwind(|| { in poison_bad()
397 let t = panic::catch_unwind(|| { in poison_bad()
419 let t = panic::catch_unwind(|| { in wait_for_force_to_finish()
/external/rust/crates/scopeguard/src/
Dlib.rs480 use std::panic::catch_unwind;
506 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_success_2()
518 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_unwind_1()
/external/rust/crates/rayon-core/src/
Dunwind.rs17 panic::catch_unwind(AssertUnwindSafe(func)) in halt_unwinding()
/external/rust/crates/tokio/tests/
Dtask_blocking.rs118 use std::panic::{catch_unwind, AssertUnwindSafe}; in useful_panic_message_when_dropping_rt_in_rt()
122 let result = catch_unwind(AssertUnwindSafe(|| { in useful_panic_message_when_dropping_rt_in_rt()
/external/rust/crates/pin-project-lite/tests/
Ddrop_order.rs137 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in project_replace_panic()
152 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in project_replace_panic()
/external/rust/crates/proc-macro-error/src/
Dlib.rs290 use std::panic::{catch_unwind, resume_unwind, UnwindSafe};
432 let caught = catch_unwind(f); in entry_point()

123