Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 25 of 56) sorted by relevance

123

/commonlibrary/rust/ylong_json/src/
Dencoder.rs37 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 …]
Derror.rs19 pub enum Error { enum
75 impl Error { implementation
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 …]
Dserializer_compact.rs77 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 …]
Dvalue.rs351 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 …]
Dstates.rs77 ) -> 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 …]
Ddeserializer.rs185 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/src/request/
Duri.rs321 type Error = HttpError; typedef
323 fn try_from(s: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument
329 type Error = HttpError; typedef
331 fn try_from(s: &'a str) -> Result<Self, Self::Error> { in try_from() argument
385 InvalidUri: From<<Scheme as TryFrom<T>>::Error>, in scheme()
409 InvalidUri: From<<Authority as TryFrom<T>>::Error>, in authority()
432 InvalidUri: From<<Path as TryFrom<T>>::Error>, in path()
455 InvalidUri: From<<Query as TryFrom<T>>::Error>, in query()
582 type Error = InvalidUri; typedef
584 fn try_from(bytes: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument
[all …]
Dmethod.rs170 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_http/ylong_http/src/body/
Dmod.rs100 type Error: Into<Box<dyn Error + Send + Sync>>; typedef
155 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>; in data()
158 fn trailer(&mut self) -> Result<Option<Headers>, Self::Error> { in trailer()
164 type Error = std::io::Error; typedef
166 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data()
221 type Error: Into<Box<dyn Error + Send + Sync>>; typedef
230 ) -> Poll<Result<usize, Self::Error>>; in poll_data()
301 ) -> Poll<Result<Option<Headers>, Self::Error>> { in poll_trailer()
408 ) -> Poll<Result<usize, std::io::Error>> { in poll_read()
423 type Error = std::io::Error; typedef
[all …]
Dempty.rs84 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()
Dtext.rs203 type Error = Error; typedef
205 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data()
211 type Error = Error; typedef
217 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
223 type Error = Error; typedef
225 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data()
231 type Error = Error; typedef
237 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
248 type Error = T::Error; typedef
254 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
Dconnector.rs26 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()
Dhttp_body.rs97 type Error = HttpClientError; typedef
99 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data()
111 fn trailer(&mut self) -> Result<Option<Headers>, Self::Error> { in trailer()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/
Dmod.rs35 type Error: Into<Box<dyn Error + Sync + Send>>; typedef
79 type Error = Error; typedef
114 type Error = Error; typedef
179 ) -> Result<TcpStream, Error> { in tunnel() argument
222 fn other_io_error(msg: &str) -> Error { in other_io_error()
/commonlibrary/rust/ylong_json/src/reader/
Dmod.rs25 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()
Dslice_reader.rs51 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/
Dstatus.rs215 type Error = HttpError; typedef
217 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from() argument
223 type Error = HttpError; typedef
225 fn try_from(value: &'a [u8]) -> Result<Self, Self::Error> { in try_from() argument
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/
Dpart.rs170 type Error = std::io::Error; typedef
172 fn data(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { in data()
189 type Error = std::io::Error; typedef
195 ) -> Poll<Result<usize, Self::Error>> { in poll_data()
Dmulti.rs281 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/
Dversion.rs69 type Error = HttpError; typedef
71 fn try_from(str: &'a str) -> Result<Self, Self::Error> { in try_from() argument
Dheaders.rs166 type Error = HttpError; typedef
168 fn try_from(pair: (N, V)) -> Result<Self, Self::Error> { in try_from() argument
258 type Error = HttpError; typedef
260 fn try_from(name: &str) -> Result<Self, Self::Error> { in try_from() argument
266 type Error = HttpError; typedef
268 fn try_from(bytes: &[u8]) -> Result<Self, Self::Error> { in try_from() argument
479 type Error = HttpError; typedef
481 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
497 type Error = HttpError; typedef
499 fn try_from(value: &[u8]) -> Result<Self, Self::Error> { in try_from() argument
/commonlibrary/rust/ylong_json/src/value/
Dnumber.rs100 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/
Derror.rs111 type Error = HttpError; typedef
112 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/
Dmix.rs174 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/c_openssl/ssl/
Derror.rs40 pub(crate) fn into_io_error(self) -> Result<io::Error, SslError> { in into_io_error()
47 pub(crate) fn get_io_error(&self) -> Option<&io::Error> { in get_io_error()

123