/ohos5.0/commonlibrary/rust/ylong_json/src/ |
H A D | encoder.rs | 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 79 fn encode_key(&mut self, key: &str) -> Result<(), Error> { in encode_key() 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 194 fn encode_null(&mut self) -> Result<(), Error> { in encode_null() argument 209 fn encode_key(&mut self, key: &str) -> Result<(), Error> { in encode_key() argument 223 fn encode_string(&mut self, string: &str) -> Result<(), Error> { in encode_string() argument 257 fn encode_null(writer: &mut dyn Write) -> Result<(), Error> { in encode_null() argument [all …]
|
H A D | error.rs | 19 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 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 192 impl From<FromUtf8Error> for Error { implementation [all …]
|
H A D | serializer_compact.rs | 77 type Error = Error; typedef 198 ) -> Result<(), Error> { in serialize_unit_variant() argument 343 type Error = Error; typedef 355 fn end(self) -> Result<(), Error> { in end() argument 364 type Error = Error; typedef 374 fn end(self) -> Result<(), Error> { in end() argument 383 type Error = Error; typedef 410 type Error = Error; typedef 436 type Error = Error; typedef 468 type Error = Error; typedef [all …]
|
H A 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 556 pub fn try_into_boolean(self) -> Result<bool, Error> { in try_into_boolean() argument 578 pub fn try_into_number(self) -> Result<Number, Error> { in try_into_number() argument 605 pub fn try_into_string(self) -> Result<JsonString, Error> { in try_into_string() argument 625 pub fn try_into_array(self) -> Result<Array, Error> { in try_into_array() argument 645 pub fn try_into_object(self) -> Result<Object, Error> { in try_into_object() argument [all …]
|
H A D | states.rs | 77 ) -> Result<(), Error> { in check_recursion() argument 88 ) -> Result<JsonValue, Error> { in start_parsing() argument 200 ) -> Result<String, Error> { in parse_string() argument 209 ) -> Result<CString, Error> { in parse_string() 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 321 ) -> Result<u16, Error> { in parse_unicode() argument 354 ) -> Result<Number, Error> { in parse_number() argument 486 ) -> Result<Option<char>, Error> { in read_error_char() argument [all …]
|
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/ |
H A D | hsd.rs | 32 type Error = String; typedef 33 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument 46 type Error = String; typedef 47 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A 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()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
H A 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()
|
H A 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()
|
H A 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()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/ |
H A D | error.rs | 35 pub enum Error { enum 91 impl Display for Error { implementation 116 impl std::error::Error for Error {} implementation 118 impl Deserialize for Error { implementation
|
/ohos5.0/base/security/code_signature/services/key_enable/src/ |
H A D | file_utils.rs | 56 pub fn create_file_path(path_name: &str) -> Result<(), std::io::Error> { in create_file_path() 62 pub fn write_bytes_to_file(filename: &str, data: &[u8]) -> Result<(), std::io::Error> { in write_bytes_to_file() 68 pub fn load_bytes_from_file(filename: &str, buffer: &mut Vec<u8>) -> Result<(), std::io::Error> { in load_bytes_from_file() 78 pub fn delete_file_path(file_path: &str) -> Result<(), std::io::Error> { in delete_file_path()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/rust/src/ |
H A D | adapter.rs | 59 pub(crate) unsafe fn error_control(err: Error) { in error_control() 78 pub(crate) unsafe fn reader_iterator(path: *const c_char) -> Result<*mut c_void, Error> { in reader_iterator() argument 102 pub(crate) unsafe fn next_line(iter: *mut c_void) -> Result<*mut Str, Error> { in next_line() argument 122 pub(crate) fn seek(fd: i32, offset: i64, pos: SeekPos) -> Result<u64, Error> { in seek() argument 135 pub(crate) fn create_dir(path: *const c_char, mode: MakeDirectionMode) -> Result<(), Error> { in create_dir() argument 152 pub(crate) fn get_parent(fd: i32) -> Result<*mut Str, Error> { in get_parent() argument
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 353 type Error = HttpError; typedef 361 type Error = HttpError; typedef 464 InvalidUri: From<<Path as TryFrom<T>>::Error>, in path() 614 type Error = InvalidUri; typedef 622 type Error = InvalidUri; typedef 728 type Error = InvalidUri; typedef 736 type Error = InvalidUri; typedef 866 type Error = InvalidUri; typedef 874 type Error = InvalidUri; typedef 919 type Error = InvalidUri; typedef [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/ |
H A 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
|
/ohos5.0/base/security/asset/interfaces/inner_kits/c/src/ |
H A D | lib.rs | 248 type Error = AssetError; typedef 250 fn try_from(vec: &Vec<u8>) -> Result<Self, Self::Error> { in try_from() argument 273 type Error = AssetError; typedef 275 fn try_from(value: &Value) -> Result<Self, Self::Error> { in try_from() argument 293 type Error = AssetError; typedef 295 fn try_from(map: &AssetMap) -> Result<Self, Self::Error> { in try_from() argument 326 type Error = AssetError; typedef 328 fn try_from(maps: &Vec<AssetMap>) -> Result<Self, Self::Error> { in try_from() argument
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/response/ |
H A 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
|
/ohos5.0/commonlibrary/rust/ylong_json/src/reader/ |
H A 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()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
H A 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()
|
/ohos5.0/base/msdp/device_status/rust/utils/src/ |
H A D | errors.rs | 47 type Error = FusionErrorCode; typedef 49 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() argument
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/ |
H A D | version.rs | 72 type Error = HttpError; typedef 74 fn try_from(str: &'a str) -> Result<Self, Self::Error> { in try_from() argument
|
H A 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
|
/ohos5.0/commonlibrary/rust/ylong_json/src/value/ |
H A 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
|
/ohos5.0/base/powermgr/thermal_manager/frameworks/napi/ |
H A D | napi_errors.h | 33 inline void Error(ThermalErrors code) in Error() function
|
/ohos5.0/base/powermgr/battery_manager/frameworks/napi/include/ |
H A D | napi_error.h | 33 inline void Error(BatteryError code) in Error() function
|