| /external/rust/crates/thiserror/tests/ |
| D | test_display.rs | 14 struct Error { in test_braced() struct 15 msg: String, in test_braced() 26 struct Error { in test_braced_unused() struct 27 extra: usize, in test_braced_unused() 37 struct Error(usize); in test_tuple() struct 46 struct Error; in test_unit() struct 54 enum Error { in test_enum() enum 72 struct Error { in test_constants() struct 73 id: &'static str, in test_constants() 86 enum Error { in test_inherit() enum [all …]
|
| /external/rust/crates/http/src/ |
| D | error.rs | 16 pub struct Error { struct 17 inner: ErrorKind, argument 32 impl fmt::Debug for Error { implementation 41 impl fmt::Display for Error { implementation 47 impl Error { impl 68 impl error::Error for Error { implementation 76 impl From<status::InvalidStatusCode> for Error { implementation 77 fn from(err: status::InvalidStatusCode) -> Error { in from() 84 impl From<method::InvalidMethod> for Error { implementation 85 fn from(err: method::InvalidMethod) -> Error { in from() [all …]
|
| /external/rust/crates/ciborium/src/ |
| D | tag.rs | 23 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() 33 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() 51 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() 61 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() 76 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() 87 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() 109 type Error = D::Error; typedef 112 fn deserialize_any<V: de::Visitor<'de>>(self, visitor: V) -> Result<V::Value, Self::Error> { in deserialize_any() 139 type Error = D::Error; typedef 146 ) -> Result<(V::Value, Self::Variant), Self::Error> { in variant_seed() [all …]
|
| /external/rust/crates/pkcs1/src/ |
| D | error.rs | 14 pub enum Error { enum 34 impl fmt::Display for Error { implementation 46 impl From<der::Error> for Error { implementation 47 fn from(err: der::Error) -> Error { in from() 53 impl From<pem::Error> for Error { implementation 54 fn from(err: pem::Error) -> Error { in from() 60 impl From<Error> for pkcs8::Error { implementation 61 fn from(err: Error) -> pkcs8::Error { in from() 71 impl From<pkcs8::Error> for Error { implementation 72 fn from(err: pkcs8::Error) -> Error { in from() [all …]
|
| /external/rust/crates/pkcs8/src/ |
| D | error.rs | 14 pub enum Error { enum 37 impl fmt::Display for Error { implementation 51 impl std::error::Error for Error {} implementation 53 impl From<der::Error> for Error { implementation 54 fn from(err: der::Error) -> Error { in from() 59 impl From<der::ErrorKind> for Error { implementation 60 fn from(err: der::ErrorKind) -> Error { in from() 66 impl From<pem::Error> for Error { implementation 67 fn from(err: pem::Error) -> Error { in from() 73 impl From<pkcs5::Error> for Error { implementation [all …]
|
| /external/rust/crates/der/src/ |
| D | error.rs | 19 pub struct Error { struct 21 kind: ErrorKind, argument 27 impl Error { implementation 29 pub fn new(kind: ErrorKind, position: Length) -> Error { in new() 74 impl std::error::Error for Error {} implementation 76 impl fmt::Display for Error { implementation 88 impl From<ErrorKind> for Error { implementation 89 fn from(kind: ErrorKind) -> Error { in from() 97 impl From<Infallible> for Error { implementation 98 fn from(_: Infallible) -> Error { in from() [all …]
|
| /external/rust/crates/futures-sink/src/ |
| D | lib.rs | 54 type Error; typedef 68 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_ready() argument 89 fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>; in start_send() argument 103 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_flush() argument 116 fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_close() argument 120 type Error = S::Error; typedef 122 fn poll_ready(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() argument 126 fn start_send(mut self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error> { in start_send() argument 130 fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_flush() argument 134 fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_close() argument [all …]
|
| /external/rust/crates/nix/src/ |
| D | poll_timeout.rs | 66 type Error = PollTimeoutTryFromError; typedef 67 fn try_from(x: Duration) -> std::result::Result<Self, Self::Error> { in try_from() argument 75 type Error = PollTimeoutTryFromError; typedef 76 fn try_from(x: u128) -> std::result::Result<Self, Self::Error> { in try_from() argument 84 type Error = PollTimeoutTryFromError; typedef 85 fn try_from(x: u64) -> std::result::Result<Self, Self::Error> { in try_from() argument 93 type Error = PollTimeoutTryFromError; typedef 94 fn try_from(x: u32) -> std::result::Result<Self, Self::Error> { in try_from() argument 112 type Error = PollTimeoutTryFromError; typedef 113 fn try_from(x: i128) -> std::result::Result<Self, Self::Error> { in try_from() argument [all …]
|
| /external/rust/crates/h2/src/ |
| D | error.rs | 21 pub struct Error { struct 41 /// An `io::Error` occurred while trying to read or write. argument 47 impl Error { implementation 67 pub fn get_io(&self) -> Option<&io::Error> { in get_io() 75 pub fn into_io(self) -> Option<io::Error> { in into_io() 119 impl From<proto::Error> for Error { implementation 120 fn from(src: proto::Error) -> Error { in from() 137 impl From<Reason> for Error { implementation 138 fn from(src: Reason) -> Error { in from() 145 impl From<SendError> for Error { implementation [all …]
|
| /external/rust/crates/ciborium/src/value/ |
| D | de.rs | 97 ) -> Result<Self::Value, D::Error> { in visit_some() 110 ) -> Result<Self::Value, D::Error> { in visit_newtype_struct() 115 fn visit_seq<A: de::SeqAccess<'de>>(self, mut acc: A) -> Result<Self::Value, A::Error> { in visit_seq() 126 fn visit_map<A: de::MapAccess<'de>>(self, mut acc: A) -> Result<Self::Value, A::Error> { in visit_map() 137 fn visit_enum<A: de::EnumAccess<'de>>(self, acc: A) -> Result<Self::Value, A::Error> { in visit_enum() 150 fn visit_seq<A: de::SeqAccess<'de>>(self, mut acc: A) -> Result<Self::Value, A::Error> { in visit_enum() 169 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() 182 fn raw(value: &Value) -> Result<u128, Error> { in integer() argument 223 type Error = Error; typedef 226 fn deserialize_any<V: de::Visitor<'de>>(self, visitor: V) -> Result<V::Value, Self::Error> { in deserialize_any() [all …]
|
| D | ser.rs | 11 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() 114 type Error = Error; typedef 147 fn serialize_none(self) -> Result<Value, Error> { in serialize_none() argument 152 fn serialize_some<U: ?Sized + ser::Serialize>(self, value: &U) -> Result<Value, Error> { in serialize_some() argument 157 fn serialize_unit(self) -> Result<Value, Error> { in serialize_unit() argument 162 fn serialize_unit_struct(self, _name: &'static str) -> Result<Value, Error> { in serialize_unit_struct() argument 172 ) -> Result<Value, Error> { in serialize_unit_variant() argument 181 ) -> Result<Value, Error> { in serialize_newtype_struct() argument 192 ) -> Result<Value, Error> { in serialize_newtype_variant() argument 200 fn serialize_seq(self, length: Option<usize>) -> Result<Self::SerializeSeq, Error> { in serialize_seq() argument [all …]
|
| /external/rust/crates/sec1/src/ |
| D | error.rs | 14 pub enum Error { enum 39 impl fmt::Display for Error { implementation 54 impl From<der::Error> for Error { implementation 55 fn from(err: der::Error) -> Error { in from() 61 impl From<pem::Error> for Error { implementation 62 fn from(err: pem::Error) -> Error { in from() 68 impl From<pkcs8::Error> for Error { implementation 69 fn from(err: pkcs8::Error) -> Error { in from() 75 impl From<pkcs8::spki::Error> for Error { implementation 76 fn from(err: pkcs8::spki::Error) -> Error { in from() [all …]
|
| /external/rust/crates/serde_cbor/src/ |
| D | error.rs | 13 pub struct Error(ErrorImpl); struct 31 impl Error { implementation 37 pub(crate) fn syntax(code: ErrorCode, offset: u64) -> Error { in syntax() 42 pub(crate) fn io(error: io::Error) -> Error { in io() 60 pub fn scratch_too_small(offset: u64) -> Error { in scratch_too_small() 68 pub(crate) fn scratch_too_small(offset: u64) -> Error { in scratch_too_small() 79 pub fn message<T: fmt::Display>(_msg: T) -> Error { in message() 97 pub(crate) fn message<T: fmt::Display>(_msg: T) -> Error { in message() 117 pub fn eof(offset: u64) -> Error { in eof() 196 impl error::Error for Error { implementation [all …]
|
| /external/flatbuffers/rust/flexbuffers/src/builder/ |
| D | ser.rs | 43 fn finish_if_not_nested(&mut self) -> Result<(), Error> { in finish_if_not_nested() argument 67 fn end_vector(&mut self) -> Result<(), Error> { in end_vector() argument 72 fn end_map(&mut self) -> Result<(), Error> { in end_map() argument 81 pub enum Error { enum 87 impl std::fmt::Display for Error { implementation 88 fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { in fmt() 92 impl std::error::Error for Error {} implementation 93 impl ser::Error for Error { implementation 103 type Error = Error; typedef 110 fn end(self) -> Result<Self::Ok, Self::Error> { in end() [all …]
|
| /external/rust/crates/toml/src/ |
| D | edit.rs | 10 pub struct Error { struct 14 impl Error { impl 24 impl serde::de::Error for Error { 35 impl std::fmt::Display for Error { implementation 41 impl std::error::Error for Error {} implementation 53 pub(crate) enum Error { enum 60 impl Error { implementation 69 impl serde::ser::Error for Error { implementation 78 impl std::fmt::Display for Error { implementation 90 impl std::error::Error for Error {} implementation
|
| D | ser.rs | 78 pub struct Error { struct 79 pub(crate) inner: crate::edit::ser::Error, argument 82 impl Error { implementation 113 impl serde::ser::Error for Error { implementation 122 impl std::fmt::Display for Error { implementation 128 impl std::error::Error for Error {} implementation 175 type Error = Error; typedef 184 fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error> { in serialize_bool() 192 fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error> { in serialize_i8() 200 fn serialize_i16(self, v: i16) -> Result<Self::Ok, Self::Error> { in serialize_i16() [all …]
|
| /external/rust/crates/futures-channel/src/mpsc/ |
| D | sink_impl.rs | 7 type Error = SendError; typedef 9 fn poll_ready(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() argument 13 fn start_send(mut self: Pin<&mut Self>, msg: T) -> Result<(), Self::Error> { in start_send() argument 17 fn poll_flush(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_flush() argument 27 fn poll_close(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_close() argument 34 type Error = SendError; typedef 36 fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() argument 40 fn start_send(mut self: Pin<&mut Self>, msg: T) -> Result<(), Self::Error> { in start_send() argument 44 fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_flush() argument 48 fn poll_close(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_close() argument [all …]
|
| /external/rust/crates/ciborium-io/src/ |
| D | lib.rs | 33 type Error; typedef 36 fn read_exact(&mut self, data: &mut [u8]) -> Result<(), Self::Error>; in read_exact() 45 type Error; typedef 48 fn write_all(&mut self, data: &[u8]) -> Result<(), Self::Error>; in write_all() 51 fn flush(&mut self) -> Result<(), Self::Error>; in flush() 56 type Error = std::io::Error; typedef 59 fn read_exact(&mut self, data: &mut [u8]) -> Result<(), Self::Error> { in read_exact() 66 type Error = std::io::Error; typedef 69 fn write_all(&mut self, data: &[u8]) -> Result<(), Self::Error> { in write_all() 74 fn flush(&mut self) -> Result<(), Self::Error> { in flush() [all …]
|
| /external/rust/crates/ciborium/src/ser/ |
| D | mod.rs | 36 type Error = Error<W::Error>; typedef 47 fn serialize_bool(self, v: bool) -> Result<(), Self::Error> { in serialize_bool() 55 fn serialize_i8(self, v: i8) -> Result<(), Self::Error> { in serialize_i8() 60 fn serialize_i16(self, v: i16) -> Result<(), Self::Error> { in serialize_i16() 65 fn serialize_i32(self, v: i32) -> Result<(), Self::Error> { in serialize_i32() 70 fn serialize_i64(self, v: i64) -> Result<(), Self::Error> { in serialize_i64() 78 fn serialize_i128(self, v: i128) -> Result<(), Self::Error> { in serialize_i128() 104 fn serialize_u8(self, v: u8) -> Result<(), Self::Error> { in serialize_u8() 109 fn serialize_u16(self, v: u16) -> Result<(), Self::Error> { in serialize_u16() 114 fn serialize_u32(self, v: u32) -> Result<(), Self::Error> { in serialize_u32() [all …]
|
| /external/rust/crates/smccc/src/psci/ |
| D | calls.rs | 31 ) -> Result<(), Error> { in cpu_suspend() argument 59 pub fn cpu_off<C: Call>() -> Result<(), Error> { in cpu_off() argument 68 ) -> Result<(), Error> { in cpu_on() argument 99 ) -> Result<AffinityState, Error> { in affinity_info() argument 126 pub fn migrate<C: Call>(target_cpu: u64) -> Result<(), Error> { in migrate() argument 136 pub fn migrate_info_type<C: Call>() -> Result<MigrateType, Error> { in migrate_info_type() argument 146 pub fn system_off<C: Call>() -> Result<(), Error> { in system_off() argument 151 pub fn system_reset<C: Call>() -> Result<(), Error> { in system_reset() argument 156 pub fn system_reset2<C: Call>(reset_type: u32, cookie: u64) -> Result<(), Error> { in system_reset2() argument 184 pub fn mem_protect<C: Call>(enable: bool) -> Result<bool, Error> { in mem_protect() argument [all …]
|
| /external/rust/crates/csv/src/ |
| D | serializer.rs | 25 ) -> Result<(), Error> { in serialize() argument 35 type Error = Error; typedef 44 fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error> { in serialize_bool() 52 fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error> { in serialize_i8() 57 fn serialize_i16(self, v: i16) -> Result<Self::Ok, Self::Error> { in serialize_i16() 62 fn serialize_i32(self, v: i32) -> Result<Self::Ok, Self::Error> { in serialize_i32() 67 fn serialize_i64(self, v: i64) -> Result<Self::Ok, Self::Error> { in serialize_i64() 78 fn serialize_u8(self, v: u8) -> Result<Self::Ok, Self::Error> { in serialize_u8() 83 fn serialize_u16(self, v: u16) -> Result<Self::Ok, Self::Error> { in serialize_u16() 88 fn serialize_u32(self, v: u32) -> Result<Self::Ok, Self::Error> { in serialize_u32() [all …]
|
| /external/rust/crates/gdbstub/src/conn/impls/ |
| D | boxed.rs | 6 type Error = E; typedef 8 fn write(&mut self, byte: u8) -> Result<(), Self::Error> { in write() 12 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> { in write_all() 16 fn flush(&mut self) -> Result<(), Self::Error> { in flush() 20 fn on_session_start(&mut self) -> Result<(), Self::Error> { in on_session_start() 26 type Error = E; typedef 28 fn write(&mut self, byte: u8) -> Result<(), Self::Error> { in write() 32 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> { in write_all() 36 fn flush(&mut self) -> Result<(), Self::Error> { in flush() 40 fn on_session_start(&mut self) -> Result<(), Self::Error> { in on_session_start() [all …]
|
| D | mod.rs | 17 type Error = E; typedef 19 fn write(&mut self, byte: u8) -> Result<(), Self::Error> { in write() 23 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> { in write_all() 27 fn flush(&mut self) -> Result<(), Self::Error> { in flush() 31 fn on_session_start(&mut self) -> Result<(), Self::Error> { in on_session_start() 37 type Error = E; typedef 39 fn write(&mut self, byte: u8) -> Result<(), Self::Error> { in write() 43 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error> { in write_all() 47 fn flush(&mut self) -> Result<(), Self::Error> { in flush() 51 fn on_session_start(&mut self) -> Result<(), Self::Error> { in on_session_start() [all …]
|
| /external/rust/crates/log/src/kv/ |
| D | error.rs | 5 pub struct Error { struct 14 Value(value_bag::Error), argument 18 impl Error { impl 34 pub(super) fn into_value(self) -> value_bag::Error { in into_value() 45 impl fmt::Display for Error { implementation 58 impl From<fmt::Error> for Error { implementation 71 impl Error { impl 83 impl error::Error for Error {} implementation 85 impl From<io::Error> for Error { implementation
|
| /external/rust/crates/toml_edit/src/ser/ |
| D | key.rs | 9 type Error = Error; typedef 18 fn serialize_bool(self, _v: bool) -> Result<InternalString, Self::Error> { in serialize_bool() 22 fn serialize_i8(self, _v: i8) -> Result<InternalString, Self::Error> { in serialize_i8() 26 fn serialize_i16(self, _v: i16) -> Result<InternalString, Self::Error> { in serialize_i16() 30 fn serialize_i32(self, _v: i32) -> Result<InternalString, Self::Error> { in serialize_i32() 34 fn serialize_i64(self, _v: i64) -> Result<InternalString, Self::Error> { in serialize_i64() 38 fn serialize_u8(self, _v: u8) -> Result<InternalString, Self::Error> { in serialize_u8() 42 fn serialize_u16(self, _v: u16) -> Result<InternalString, Self::Error> { in serialize_u16() 46 fn serialize_u32(self, _v: u32) -> Result<InternalString, Self::Error> { in serialize_u32() 50 fn serialize_u64(self, _v: u64) -> Result<InternalString, Self::Error> { in serialize_u64() [all …]
|