| /commonlibrary/rust/ylong_json/src/ |
| D | encoder.rs | 37 pub(crate) fn encode(&mut self, value: &JsonValue) -> Result<(), Error> { in encode() argument 44 fn encode_value(&mut self, value: &JsonValue) -> Result<(), Error> { in encode_value() argument 56 fn add_tab(&mut self) -> Result<(), Error> { in add_tab() argument 64 fn encode_null(&mut self) -> Result<(), Error> { in encode_null() argument 69 fn encode_boolean(&mut self, boolean: &bool) -> Result<(), Error> { in encode_boolean() argument 74 fn encode_number(&mut self, number: &Number) -> Result<(), Error> { in encode_number() argument 79 fn encode_key(&mut self, key: &str) -> Result<(), Error> { in encode_key() argument 85 fn encode_string(&mut self, string: &CString) -> Result<(), Error> { in encode_string() argument 93 fn encode_string(&mut self, string: &str) -> Result<(), Error> { in encode_string() argument 98 fn encode_array(&mut self, array: &Array) -> Result<(), Error> { in encode_array() argument [all …]
|
| D | error.rs | 19 pub enum Error { enum 75 impl Error { impl 132 impl Debug for Error { implementation 148 impl Display for Error { implementation 154 impl From<ParseError> for Error { implementation 160 impl From<core::str::Utf8Error> for Error { implementation 166 impl From<std::io::Error> for Error { implementation 172 impl std::error::Error for Error {} implementation 174 impl serde::ser::Error for Error { implementation 183 impl serde::de::Error for Error { implementation [all …]
|
| D | serializer_compact.rs | 77 type Error = Error; typedef 92 fn serialize_bool(self, v: bool) -> Result<(), Error> { in serialize_bool() argument 100 fn serialize_i8(self, v: i8) -> Result<(), Error> { in serialize_i8() argument 104 fn serialize_i16(self, v: i16) -> Result<(), Error> { in serialize_i16() argument 108 fn serialize_i32(self, v: i32) -> Result<(), Error> { in serialize_i32() argument 112 fn serialize_i64(self, v: i64) -> Result<(), Error> { in serialize_i64() argument 117 fn serialize_u8(self, v: u8) -> Result<(), Error> { in serialize_u8() argument 121 fn serialize_u16(self, v: u16) -> Result<(), Error> { in serialize_u16() argument 125 fn serialize_u32(self, v: u32) -> Result<(), Error> { in serialize_u32() argument 129 fn serialize_u64(self, v: u64) -> Result<(), Error> { in serialize_u64() argument [all …]
|
| D | value.rs | 351 pub fn try_as_boolean(&self) -> Result<&bool, Error> { in try_as_boolean() argument 370 pub fn try_as_number(&self) -> Result<&Number, Error> { in try_as_number() argument 396 pub fn try_as_string(&self) -> Result<&JsonString, Error> { in try_as_string() argument 415 pub fn try_as_array(&self) -> Result<&Array, Error> { in try_as_array() argument 434 pub fn try_as_object(&self) -> Result<&Object, Error> { in try_as_object() argument 453 pub fn try_as_mut_boolean(&mut self) -> Result<&mut bool, Error> { in try_as_mut_boolean() argument 472 pub fn try_as_mut_number(&mut self) -> Result<&mut Number, Error> { in try_as_mut_number() argument 498 pub fn try_as_mut_string(&mut self) -> Result<&mut JsonString, Error> { in try_as_mut_string() argument 517 pub fn try_as_mut_array(&mut self) -> Result<&mut Array, Error> { in try_as_mut_array() argument 536 pub fn try_as_mut_object(&mut self) -> Result<&mut Object, Error> { in try_as_mut_object() argument [all …]
|
| D | states.rs | 77 ) -> Result<(), Error> { in check_recursion() argument 88 ) -> Result<JsonValue, Error> { in start_parsing() argument 99 fn parse_value<R: Cacheable>(deserializer: &mut Deserializer<R>) -> Result<JsonValue, Error> { in parse_value() argument 135 fn parse_object<R: Cacheable>(deserializer: &mut Deserializer<R>) -> Result<JsonValue, Error> { in parse_object() argument 200 ) -> Result<String, Error> { in parse_string() argument 209 ) -> Result<CString, Error> { in parse_string() argument 217 fn parse_key<R: Cacheable>(deserializer: &mut Deserializer<R>) -> Result<String, Error> { in parse_key() argument 225 ) -> Result<Vec<u8>, Error> { in parse_string_inner() argument 273 ) -> Result<(), Error> { in parse_escape_character() argument 300 ) -> Result<(), Error> { in parse_unicode() argument [all …]
|
| D | deserializer.rs | 185 fn peek_char(&mut self) -> Result<Option<u8>, Error> { in peek_char() argument 190 fn next_char(&mut self) -> Result<Option<u8>, Error> { in next_char() argument 200 fn parse_bool(&mut self) -> Result<bool, Error> { in parse_bool() argument 243 fn de_parse_string(&mut self) -> Result<JsonString, Error> { in de_parse_string() argument 256 type Error = Error; typedef 660 type Error = Error; typedef 705 type Error = Error; typedef 790 type Error = Error; typedef 813 type Error = Error; typedef 815 fn unit_variant(self) -> Result<(), Error> { in unit_variant() argument
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
| D | connector.rs | 26 type Error: Into<Box<dyn std::error::Error + Send + Sync>>; typedef 29 fn connect(&self, uri: &Uri) -> Result<Self::Stream, Self::Error>; in connect() 63 type Error = Error; typedef 65 fn connect(&self, uri: &Uri) -> Result<Self::Stream, Self::Error> { in connect() 88 type Error = HttpClientError; typedef 90 fn connect(&self, uri: &Uri) -> Result<Self::Stream, Self::Error> { in connect()
|
| D | http_body.rs | 96 type Error = HttpClientError; typedef 98 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 110 fn trailer(&mut self) -> Result<Option<Headers>, Self::Error> { in trailer()
|
| /commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
| D | mod.rs | 353 type Error = HttpError; typedef 355 fn try_from(s: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument 361 type Error = HttpError; typedef 363 fn try_from(s: &'a str) -> Result<Self, Self::Error> { in try_from() argument 417 InvalidUri: From<<Scheme as TryFrom<T>>::Error>, in scheme() 441 InvalidUri: From<<Authority as TryFrom<T>>::Error>, in authority() 464 InvalidUri: From<<Path as TryFrom<T>>::Error>, in path() 487 InvalidUri: From<<Query as TryFrom<T>>::Error>, in query() 614 type Error = InvalidUri; typedef 616 fn try_from(bytes: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument [all …]
|
| /commonlibrary/rust/ylong_http/ylong_http/src/body/ |
| D | empty.rs | 84 type Error = Infallible; typedef 86 fn data(&mut self, _buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 92 type Error = Infallible; typedef 98 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
|
| D | text.rs | 185 type Error = Error; typedef 187 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 193 type Error = Error; typedef 199 ) -> Poll<Result<usize, Self::Error>> { in poll_data() 205 type Error = Error; typedef 207 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 213 type Error = Error; typedef 219 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
|
| D | mod.rs | 101 type Error: Into<Box<dyn Error + Send + Sync>>; typedef 156 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>; in data() 159 fn trailer(&mut self) -> Result<Option<Headers>, Self::Error> { in trailer() 165 type Error = std::io::Error; typedef 167 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 222 type Error: Into<Box<dyn Error + Send + Sync>>; typedef 231 ) -> Poll<Result<usize, Self::Error>>; in poll_data() 302 ) -> Poll<Result<Option<Headers>, Self::Error>> { in poll_trailer()
|
| /commonlibrary/rust/ylong_http/ylong_http/src/request/ |
| D | method.rs | 170 type Error = HttpError; typedef 172 fn try_from(t: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument 178 type Error = HttpError; typedef 180 fn try_from(t: &'a str) -> Result<Self, Self::Error> { in try_from() argument
|
| /commonlibrary/rust/ylong_json/src/reader/ |
| D | mod.rs | 25 type Error: Into<Box<dyn std::error::Error>>; typedef 28 fn next(&mut self) -> Result<Option<u8>, Self::Error>; in next() 32 fn peek(&mut self) -> Result<Option<u8>, Self::Error>; in peek() 92 fn next_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error>; in next_n() 96 fn peek_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error>; in peek_n()
|
| D | slice_reader.rs | 51 type Error = Infallible; // Use Infallible because no error will be returned in SliceReader. typedef 54 fn next(&mut self) -> Result<Option<u8>, Self::Error> { in next() 64 fn peek(&mut self) -> Result<Option<u8>, Self::Error> { in peek() 158 fn next_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error> { in next_n() 167 fn peek_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error> { in peek_n()
|
| /commonlibrary/rust/ylong_http/ylong_http/src/response/ |
| D | status.rs | 209 type Error = HttpError; typedef 211 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() argument 217 type Error = HttpError; typedef 219 fn try_from(value: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument
|
| /commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
| D | part.rs | 171 type Error = std::io::Error; typedef 173 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 190 type Error = std::io::Error; typedef 196 ) -> Poll<Result<usize, Self::Error>> { in poll_data() 222 ) -> Poll<Result<usize, std::io::Error>> { in poll_mime_body()
|
| D | multi.rs | 281 type Error = std::io::Error; typedef 283 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 309 type Error = std::io::Error; typedef 315 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
|
| /commonlibrary/rust/ylong_http/ylong_http/src/ |
| D | headers.rs | 166 type Error = HttpError; typedef 168 fn try_from(pair: (N, V)) -> Result<Self, Self::Error> { in try_from() argument 269 type Error = HttpError; typedef 271 fn try_from(name: &str) -> Result<Self, Self::Error> { in try_from() argument 277 type Error = HttpError; typedef 279 fn try_from(bytes: &[u8]) -> Result<Self, Self::Error> { in try_from() argument 489 type Error = HttpError; typedef 491 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument 507 type Error = HttpError; typedef 509 fn try_from(value: &[u8]) -> Result<Self, Self::Error> { in try_from() argument
|
| D | version.rs | 72 type Error = HttpError; typedef 74 fn try_from(str: &'a str) -> Result<Self, Self::Error> { in try_from() argument
|
| /commonlibrary/rust/ylong_json/src/value/ |
| D | number.rs | 100 pub fn try_as_u64(&self) -> Result<u64, Error> { in try_as_u64() argument 122 pub fn try_as_i64(&self) -> Result<i64, Error> { in try_as_i64() argument 147 pub fn try_as_f64(&self) -> Result<f64, Error> { in try_as_f64() argument
|
| /commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
| D | error.rs | 112 type Error = H2Error; typedef 113 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
|
| /commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/ |
| D | mix.rs | 174 type Error = std::io::Error; typedef 176 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data() 191 type Error = std::io::Error; typedef 197 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/io/ |
| D | split.rs | 86 ) -> Poll<Result<usize, io::Error>> { in poll_write() 104 fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> { in poll_flush()
|
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/ |
| D | async_write.rs | 155 ) -> Poll<Result<usize, io::Error>> { in poll_write() 163 ) -> Poll<Result<usize, io::Error>> { in poll_write_vectored()
|