Home
last modified time | relevance | path

Searched refs:map_err (Results 1 - 25 of 84) sorted by relevance

1234

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Ddatabase.rs66 .map_err(|_| Error::WriteMsgParcelFailed)?;
69 .map_err(|_| Error::WriteMsgParcelFailed)?;
78 .map_err(|_| Error::SendRequestFailed)?;
82 .map_err(|_| Error::ReadMsgParcelFailed)?;
109 .map_err(|_| Error::WriteMsgParcelFailed)?;
119 .map_err(|_| Error::SendRequestFailed)?;
123 .map_err(|_| Error::ReadMsgParcelFailed)?;
129 .map_err(|_| Error::ReadMsgParcelFailed)?
144 .map_err(|_| Error::WriteMsgParcelFailed)?;
147 .map_err(|
[all...]
H A Dasset.rs195 .map_err(|_| Error::SendRequestFailed)?;
199 .map_err(|_| Error::ReadMsgParcelFailed)?;
216 .map_err(|_| Error::WriteMsgParcelFailed)?;
219 .map_err(|_| Error::WriteMsgParcelFailed)?;
222 .map_err(|_| Error::WriteMsgParcelFailed)?;
225 .map_err(|_| Error::WriteMsgParcelFailed)?;
234 .map_err(|_| Error::SendRequestFailed)?;
240 .map_err(|_| Error::ReadMsgParcelFailed)?;
244 .map_err(|_| Error::ReadMsgParcelFailed)?;
250 .map_err(|
[all...]
H A Dconnect.rs537 .map_err(|_| Error::ReadMsgParcelFailed)? in read()
542 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
545 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
548 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
622 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
625 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
628 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
631 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
634 .map_err(|_| Error::ReadMsgParcelFailed)?; in read()
695 .map_err(|
[all...]
/third_party/rust/crates/clap/examples/
H A Drepl.rs20 write!(std::io::stdout(), "{err}").map_err(|e| e.to_string())?; in main()
21 std::io::stdout().flush().map_err(|e| e.to_string())?; in main()
33 .map_err(|e| e.to_string())?; in respond()
36 write!(std::io::stdout(), "Pong").map_err(|e| e.to_string())?; in respond()
37 std::io::stdout().flush().map_err(|e| e.to_string())?; in respond()
40 write!(std::io::stdout(), "Exiting ...").map_err(|e| e.to_string())?; in respond()
41 std::io::stdout().flush().map_err(|e| e.to_string())?; in respond()
85 write!(std::io::stdout(), "$ ").map_err(|e| e.to_string())?; in readline()
86 std::io::stdout().flush().map_err(|e| e.to_string())?; in readline()
90 .map_err(| in readline()
[all...]
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs668 .map_err(|_| io::Errno::OVERFLOW)?, in utimensat_old()
676 .map_err(|_| io::Errno::OVERFLOW)?, in utimensat_old()
771 dev.try_into().map_err(|_e| io::Errno::PERM)?,
1137 .map_err(|_| io::Errno::OVERFLOW)?, in futimens_old()
1145 .map_err(|_| io::Errno::OVERFLOW)?,
1200 let offset: i64 = offset.try_into().map_err(|_e| io::Errno::INVAL)?;
1238 let length = length.try_into().map_err(|_overflow_err| io::Errno::FBIG)?;
1341 st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
1348 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
1354 .map_err(| in statx_to_stat()
[all...]
/third_party/rust/crates/rustix/src/path/
H A Darg.rs106 CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
116 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
144 CString::new(String::as_str(self)).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
180 CString::new(self.as_str()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
190 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
200 f(&CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?) in into_with_c_str()
219 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
259 .map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
296 CString::new(self.as_bytes()).map_err(|_cstr_er in to_string_lossy()
[all...]
/third_party/rust/crates/regex/tests/
H A Dconsistent.rs28 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
36 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
43 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
55 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
64 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
72 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
84 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
93 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
101 .map_err(|err| format!("{}", err))?, in backends_are_consistent()
140 .map_err(|er in quickcheck_regex_eq()
[all...]
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dsyscalls.rs628 st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
635 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
641 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
647 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat()
657 st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat()
658 st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat()
659 st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat()
660 st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat()
661 st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat()
662 st_rdev: s64.st_rdev.try_into().map_err(| in stat_to_stat()
[all...]
/third_party/rust/crates/autocfg/src/
H A Dversion.rs30 .map_err(error::from_io)); in from_rustc()
34 let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); in from_rustc()
55 try!(major.parse().map_err(error::from_num)), in from_rustc()
56 try!(minor.parse().map_err(error::from_num)), in from_rustc()
57 try!(patch.parse().map_err(error::from_num)), in from_rustc()
H A Dlib.rs164 let meta = try!(fs::metadata(&dir).map_err(error::from_io)); in with_dir()
226 let mut child = try!(command.spawn().map_err(error::from_io)); in probe()
230 try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io)); in probe()
232 try!(stdin.write_all(code.as_ref()).map_err(error::from_io)); in probe()
235 let status = try!(child.wait().map_err(error::from_io)); in probe()
/third_party/rust/crates/log/src/kv/
H A Dsource.rs415 self.0.visit(&mut f).map_err(|_| fmt::Error)?; in fmt()
454 self.0.visit(&mut f).map_err(|_| fmt::Error)?; in fmt()
476 .map_err(|_| Error::msg("failed to stream map key"))?; in stream()
479 .map_err(|_| Error::msg("failed to stream map value"))?; in stream()
486 .map_err(|_| self::sval::Error::msg("failed to begin map"))?; in stream()
489 .map_err(|_| self::sval::Error::msg("failed to visit key-values"))?; in stream()
493 .map_err(|_| self::sval::Error::msg("failed to end map")) in stream()
508 .map_err(|_| Error::msg("failed to stream seq entry"))?; in stream()
515 .map_err(|_| self::sval::Error::msg("failed to begin seq"))?; in stream()
518 .map_err(| in stream()
[all...]
/kernel/linux/linux-5.10/arch/m68k/mm/
H A Dfault.c95 goto map_err; in do_page_fault()
101 goto map_err; in do_page_fault()
108 goto map_err; in do_page_fault()
111 goto map_err; in do_page_fault()
150 goto map_err; in do_page_fault()
195 map_err: in do_page_fault()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Drequest.rs114 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?; in url()
133 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?, in header()
136 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?, in header()
209 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?, in multipart()
216 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?, in multipart()
H A Dconfig.rs240 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e))), in http()
257 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e))), in https()
274 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e))), in all()
366 let str = std::str::from_utf8(pem).map_err(|_| { in from_pem()
383 .map_err(|e| HttpClientError::new_with_cause(ErrorKind::Build, Some(e)))?; in from_pem()
/kernel/linux/linux-6.6/arch/m68k/mm/
H A Dfault.c95 goto map_err; in do_page_fault()
99 goto map_err; in do_page_fault()
106 goto map_err; in do_page_fault()
156 goto map_err; in do_page_fault()
199 map_err: in do_page_fault()
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/
H A Dsyscalls.rs77 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old()
78 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old()
136 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
137 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
191 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old()
192 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old()
272 tv_sec: (*utime).tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old()
273 tv_nsec: (*utime).tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old()
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs201 openat(dirfd, path, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP) in proc_opendirat()
223 check_proc_entry(Kind::Proc, proc.as_fd(), None).map_err(|_err| io::Errno::NOTSUP)?; in proc()
253 .map_err(|_err| io::Errno::NOTSUP)?; in proc_self()
284 .map_err(|_err| io::Errno::NOTSUP)?;
321 .map_err(|_err| io::Errno::NOTSUP)?; in proc_self_fdinfo()
413 let file = openat(dir, name, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
429 let dir = Dir::read_from(dir).map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
432 let dot_stat = dir.stat().map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
440 let entry = entry.map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
/third_party/rust/crates/cxx/gen/lib/src/
H A Dlib.rs57 .map_err(crate::gen::Error::from) in generate_header_and_cc()
58 .map_err(Error::from)?; in generate_header_and_cc()
59 gen::generate(syntax, opt).map_err(Error::from) in generate_header_and_cc()
/third_party/rust/crates/rustix/src/backend/linux_raw/time/
H A Dsyscalls.rs134 .map_err(|_| io::Errno::OVERFLOW)?, in timerfd_settime_old()
139 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old()
146 .map_err(|_| io::Errno::OVERFLOW)?, in timerfd_settime_old()
151 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old()
/third_party/rust/crates/libloading/src/os/windows/
H A Dmod.rs127 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in this()
162 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in open_already_loaded()
203 }).map_err(|e| e.unwrap_or(crate::Error::LoadLibraryExWUnknown)); in load_with_flags()
233 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get()
254 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get_ordinal()
288 }).map_err(|e| e.unwrap_or(crate::Error::FreeLibraryUnknown)); in close()
/third_party/rust/crates/clap/src/
H A Dderive.rs84 .map_err(format_error::<Self>); in parse()
98 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse()
109 .map_err(format_error::<Self>); in parse_from()
127 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse_from()
138 .map_err(format_error::<Self>); in update_from()
155 .map_err(format_error::<Self>) in try_update_from()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/
H A Dmod.rs113 .map_err(HttpClientError::from)
366 self.0.build().map(Client).map_err(HttpClientError::from) in build()
/kernel/linux/linux-6.6/rust/alloc/
H A Draw_vec.rs218 let layout = Layout::array::<T>(capacity).map_err(|_| CapacityOverflow)?; in try_allocate_in()
224 let ptr = result.map_err(|_| AllocError { layout, non_exhaustive: () })?; in try_allocate_in()
490 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink()
512 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
527 memory.map_err(|_| AllocError { layout: new_layout, non_exhaustive: () }.into()) in finish_grow()
543 match result.map_err(|e| e.kind()) { in handle_reserve()
/third_party/rust/crates/nix/src/
H A Dpty.rs84 unistd::read(self.0, buf).map_err(io::Error::from) in read()
90 unistd::write(self.0, buf).map_err(io::Error::from) in write()
99 unistd::read(self.0, buf).map_err(io::Error::from) in read()
105 unistd::write(self.0, buf).map_err(io::Error::from) in write()
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/
H A Dlib.rs69 .map_err(|_| "error converting path into String")?; in run_predicate_script()
77 .map_err(|_| "error converting path into String")?; in run_predicate_script()

Completed in 14 milliseconds

1234