Home
last modified time | relevance | path

Searched refs:StdError (Results 1 – 25 of 34) sorted by relevance

12

/external/rust/crates/anyhow/src/
Dcontext.rs2 use crate::{Context, Error, StdError};
12 pub trait StdError { trait
19 impl<E> StdError for E
32 impl StdError for Error {
44 E: ext::StdError + Send + Sync + 'static,
121 impl<C, E> StdError for ContextError<C, E>
124 E: StdError + 'static,
131 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
136 impl<C> StdError for ContextError<C, Error>
145 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
[all …]
Derror.rs7 use crate::{Error, StdError};
30 E: StdError + Send + Sync + 'static, in new()
83 E: StdError + Send + Sync + 'static, in from_std()
157 E: StdError + Send + Sync + 'static, in from_context()
181 error: Box<dyn StdError + Send + Sync>, in from_boxed()
192 object_downcast: object_downcast::<Box<dyn StdError + Send + Sync>>, in from_boxed()
194 object_downcast_mut: object_downcast_mut::<Box<dyn StdError + Send + Sync>>, in from_boxed()
195 object_drop_rest: object_drop_front::<Box<dyn StdError + Send + Sync>>, in from_boxed()
216 E: StdError + Send + Sync + 'static, in construct()
387 pub fn root_cause(&self) -> &(dyn StdError + 'static) { in root_cause()
[all …]
Dwrapper.rs1 use crate::StdError;
25 impl<M> StdError for MessageError<M> where M: Display + Debug + 'static {}
48 impl<M> StdError for DisplayError<M> where M: Display + 'static {}
52 pub struct BoxedError(pub Box<dyn StdError + Send + Sync>);
69 impl StdError for BoxedError {
75 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
Dchain.rs2 use crate::StdError;
18 next: Option<&'a (dyn StdError + 'static)>,
22 rest: vec::IntoIter<&'a (dyn StdError + 'static)>,
27 pub fn new(head: &'a (dyn StdError + 'static)) -> Self { in new()
35 type Item = &'a (dyn StdError + 'static);
Dkind.rs51 use crate::StdError;
105 impl BoxedKind for Box<dyn StdError + Send + Sync> {}
109 pub fn new(self, error: Box<dyn StdError + Send + Sync>) -> Error { in new()
Dlib.rs263 use std::error::Error as StdError;
266 trait StdError: Debug + Display { interface
267 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
/external/rust/crates/csv/src/
Derror.rs1 use std::error::Error as StdError;
137 impl StdError for Error {
138 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
251 impl StdError for FromUtf8Error {
252 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
288 impl StdError for Utf8Error {}
337 impl<W: std::any::Any> StdError for IntoInnerError<W> {
338 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
/external/rust/crates/anyhow/tests/
Dtest_convert.rs7 use std::error::Error as StdError;
13 let box_dyn = Box::<dyn StdError + Send + Sync>::from(error); in test_convert()
20 fn test_question_mark() -> Result<(), Box<dyn StdError>> { in test_question_mark()
Dtest_boxed.rs2 use std::error::Error as StdError;
14 let error = Box::<dyn StdError + Send + Sync>::from("oh no!"); in test_boxed_str()
20 .downcast_ref::<Box<dyn StdError + Send + Sync>>() in test_boxed_str()
Dtest_source.rs2 use std::error::Error as StdError;
19 impl StdError for TestError {
20 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
Dtest_downcast.rs9 use std::error::Error as StdError;
99 impl StdError for LargeAlignedError {} in test_large_alignment()
/external/rust/cxx/gen/lib/src/
Derror.rs4 use std::error::Error as StdError;
29 impl StdError for Error {
30 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
/external/rust/cxx/gen/src/
Derror.rs8 use std::error::Error as StdError;
37 impl StdError for Error {
38 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
85 pub(crate) fn report(error: impl StdError) -> impl Display { in report()
88 impl<E: StdError> Display for Report<E> { in report()
91 let mut error: &dyn StdError = &self.0; in report()
Dfs.rs3 use std::error::Error as StdError;
22 impl StdError for Error {
23 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
/external/rust/crates/criterion/src/
Derror.rs3 use std::error::Error as StdError;
43 impl StdError for Error {
53 fn cause(&self) -> Option<&dyn StdError> { in cause() argument
/external/rust/cxx/gen/build/src/
Derror.rs3 use std::error::Error as StdError;
85 impl StdError for Error {
86 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
/external/rust/crates/anyhow/tests/drop/
Dmod.rs3 use std::error::Error as StdError;
41 impl StdError for DetectDrop {}
/external/rust/crates/thiserror/tests/
Dtest_source.rs3 use std::error::Error as StdError;
25 source: Box<dyn StdError + Send + 'static>,
/external/crosvm/aarch64/src/
Dlib.rs6 use std::error::Error as StdError;
127 CreateDevices(Box<dyn StdError>),
131 CreateIrqChip(Box<dyn StdError>),
136 CreateVm(Box<dyn StdError>),
244 E1: StdError + 'static, in build_vm()
245 E2: StdError + 'static, in build_vm()
/external/rust/crates/serde/src/ser/
Dmod.rs120 pub use std::error::Error as StdError;
123 pub use std_error::Error as StdError;
183 declare_error_trait!(Error: Sized + StdError);
/external/rust/crates/tinytemplate/src/
Derror.rs6 use std::error::Error as StdError;
109 impl StdError for Error {
/external/rust/crates/grpcio/src/security/
Dcredentials.rs3 use std::error::Error as StdError;
79 fn fetch(&self) -> std::result::Result<Option<ServerCredentialsBuilder>, Box<dyn StdError>>; in fetch() argument
/external/crosvm/arch/src/
Dlib.rs11 use std::error::Error as StdError;
129 type Error: StdError;
170 E1: StdError + 'static, in build_vm()
171 E2: StdError + 'static; in build_vm()
/external/rust/crates/grpcio/src/
Derror.rs78 use std::error::Error as StdError;
/external/rust/crates/remain/
DREADME.md76 + AaaUhOh(Box<dyn StdError>),
86 49 | AaaUhOh(Box<dyn StdError>),

12