Home
last modified time | relevance | path

Searched full:code (Results 1 – 25 of 111) sorted by relevance

12345

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
Derror.rs39 code: c_ulong, field
53 code: self.code, in clone()
82 code => { in get()
96 code, in get()
107 code => { in get()
128 code, in get()
139 /// Returns the raw OpenSSL error code for this error.
140 fn code(&self) -> c_ulong { in code() method
141 self.code in code()
147 write!(f, "error:{:08X}", self.code())?; in fmt()
[all …]
Dx509.rs194 .field("code", &self.0) in fmt()
363 /// 1. Creates a `X509VerifyResult` using a known error code.
375 /// 1. Creates a `X509VerifyResult` using a raw error code.
376 /// 2. Verify that the error code is correct.
379 let code = 20; in ut_from_raw() localVariable
380 let res = X509VerifyResult::from_raw(code); in ut_from_raw()
381 assert_eq!(res.0, code); in ut_from_raw()
384 /// UT test code for `fmt::Display` and `fmt::Debug`.
387 /// 1. Creates a `X509VerifyResult` using an error code.
398 assert!(dbg_dis.contains("code")); in ut_fmt_display()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
Derror.rs26 pub(crate) code: SslErrorCode, field
38 pub(crate) fn code(&self) -> SslErrorCode { in code() method
39 self.code in code()
70 match self.code { in fmt()
74 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt()
76 write!(f, "SslCode[{}], Unexpected EOF", self.code) in fmt()
83 write!(f, "SslCode: [{}]", self.code) in fmt()
88 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt()
93 self.code in fmt()
99 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt()
[all …]
Dstream.rs48 let code = self.ssl.get_error(err); in get_error() localVariable
49 let internal = match code { in get_error()
67 SslError { code, internal } in get_error()
196 Err(ref e) if e.code == SslErrorCode::ZERO_RETURN => return Ok(0), in read()
199 Err(ref e) if e.code == SslErrorCode::SYSCALL && e.get_io_error().is_none() => { in read()
203 Err(ref e) if e.code == SslErrorCode::WANT_READ && e.get_io_error().is_none() => {} in read()
222 Err(ref e) if e.code == SslErrorCode::WANT_READ && e.get_io_error().is_none() => {} in write()
265 code: SslErrorCode::SSL, in verify_server_root_cert()
272 code: SslErrorCode::SSL, in verify_server_root_cert()
298 code: SslErrorCode::SSL, in verify_server_cert()
[all …]
/commonlibrary/ets_utils/tools/
Dets_error.h37 // err-code in ThrowError()
38 napi_value code = nullptr; in ThrowError() local
39 napi_create_int32(env, errCode, &code); in ThrowError()
45 napi_set_named_property(env, errorValue, "code", code); in ThrowError()
59 // err-code in CreateError()
60 napi_value code = nullptr; in CreateError() local
61 napi_create_int32(env, errCode, &code); in CreateError()
67 napi_set_named_property(env, errorValue, "code", code); in CreateError()
/commonlibrary/ets_utils/base_sdk/ets/
D@ohos.base.ets17 code: number;
22 this.code = 0;
25 constructor(code: number, error: Error) {
27 this.code = code;
30 constructor(code: number, data: T, error: Error) {
32 this.code = code;
/commonlibrary/rust/ylong_http/ylong_http/src/h3/
Dframe.rs16 /// Data Frame type code.
18 /// HEADERS Frame type code.
20 /// CANCEL_PUSH Frame type code.
22 /// SETTINGS Frame type code.
24 /// PUSH_PROMISE Frame type code.
26 /// GOAWAY Frame type code.
28 /// MAX_PUSH_ID Frame type code.
30 /// SETTING_QPACK_MAX_TABLE_CAPACITY setting code.
32 /// SETTING_MAX_FIELD_SECTION_SIZE setting code.
34 /// SETTING_QPACK_BLOCKED_STREAMS setting code.
[all …]
Dstream.rs18 /// HTTP3 control stream type code.
20 /// HTTP3 push stream type code.
22 /// qpack encoder stream type code.
24 /// qpack decoder stream type code.
/commonlibrary/rust/ylong_http/ylong_http/src/huffman/
Dmod.rs19 //! In computer science and information theory, a `Huffman code` is a particular
20 //! type of optimal prefix code that is commonly used for lossless data
21 //! compression. The process of finding or using such a code proceeds by means
26 //! # Huffman code in Http/2
27 //! There is a table of Huffman code in `RFC7541`. This [Huffman code] was
29 //! a canonical Huffman code with some tweaking to ensure that no symbol has a
30 //! unique code length.
32 //! [Huffman Code]: https://www.rfc-editor.org/rfc/rfc7541.html#ref-HUFFMAN
34 // TODO: Introduction of `Huffman code in Http/3`.
42 /// Converts a string to a Huffman code, and then put it into the
[all …]
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ffi/
Derr.rs19 /// If there is no text string registered for the given error code,
20 /// the error string will contain the numeric code.
28 /// Returns the earliest error code from the thread's error queue and
/commonlibrary/rust/ylong_http/ylong_http/src/h2/
Derror.rs23 //! Error codes share a common code space. Some error codes apply only to either
52 /// a `GOAWAY` might include this code to indicate graceful shutdown of a
57 /// use when a more specific error code is not available.
80 /// The endpoint uses this error code to indicate that the stream is no
105 /// Gets the error code of the `ErrorCode` enum.
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/
Dmanager.rs255 H2Error::StreamError(id, code) => match self.manage_stream_error(cx, id, code) { in deal_poll_body_error()
538 H2Error::StreamError(id, code) => self.manage_stream_error(cx, id, code), in manage_resp_error()
539 H2Error::ConnectionError(code) => self.manage_conn_error(cx, code), in manage_resp_error()
558 code: ErrorCode, in manage_stream_error()
560 let rest_payload = RstStream::new(code.into_code()); in manage_stream_error()
571 RespMessage::OutputExit(DispatchErrorKind::H2(H2Error::StreamError(id, code))), in manage_stream_error()
598 code: ErrorCode, in manage_conn_error()
603 code.into_code(), in manage_conn_error()
626 self.exit_with_error(cx, DispatchErrorKind::H2(H2Error::ConnectionError(code))); in manage_conn_error()
630 self.next_state = ManagerState::Exit(H2Error::ConnectionError(code).into()); in manage_conn_error()
[all …]
/commonlibrary/ets_utils/
Dhisysevent.yaml24 CODE: {type: INT32, desc: Error code}
/commonlibrary/utils_lite/include/
Dohos_errno.h23 * Definition of error code. The error codes are applicable to both the application and kernel
54 EC_LLERRTOP = -127, /* Low level function error code max value */
55 EC_HLERRBASE = -128 /* High level function error code baseline */
/commonlibrary/c_utils/base/include/
Dcommon_timer_errors.h19 * @brief Provides the values of the <b>Code</b> segment in <b>ErrCode</b>
39 …* |Field|Reserved| Subsystem | Module | Code
56 * @brief Enumerates the values of the <b>Code</b> segment in <b>ErrCode</b>
Dsemaphore_ex.h25 * calling of a critical piece of code or restricts the maximum number
26 * of threads entering the code section.
Dcommon_mapped_file_errors.h19 * @brief Provides the values of the <b>Code</b> segment in <b>ErrCode</b>
39 …* |Field|Reserved| Subsystem | Module | Code
/commonlibrary/ets_utils/js_api_module/fastbuffer/src/
Djs_fastbuffer.ts37 code: number; property in BusinessError
41 this.code = errorNumber;
46 TYPE_ERROR: 401, // 401: TYPE_ ERROR code value
47 RANGE_ERROR: 10200001, // 10200001: RANGE_ERROR code value
48 BUFFER_SIZE_ERROR: 10200009, // 10200009: BUFFER_SIZE_ERROR code value
49 PROPERTY_TYPE_ERROR: 10200013, // 10200013: TYPE_ ERROR code value
50 ARRAY_BUFFER_IS_NULL_OR_DETACHED: 10200068 // 10200013: TYPE_ ERROR code value
631 const code = str.charCodeAt(i); constant
632 if (code >= 0xD800 && code <= 0xDBFF) {
640 if (code <= 0x7F) {
[all …]
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
Ddfx_hisys_event.cpp33 "CODE", hisyseventParams->code, in WriteFfrtAndUv()
/commonlibrary/rust/ylong_http/
DREADME.md42 …so users can switch between synchronous and asynchronous logic with a small amount of code changes.
52 - `Redirect`: HTTP automatic redirection capability. When the HTTP response returns a status code r…
91 │ ├── src # Source code ylong_http
103 ├── src # Source code of ylong_http_client
/commonlibrary/rust/ylong_json/docs/
Duser_guide.md148 // After executing this code, the contents of the table are as follows:
157 // After executing this code, the contents of the table are as follows:
167 // After executing this code, the json_value member "no_such_key" has been added,
180 // After executing this code, the length of the array member of `json_value` becomes 4,
193 // After executing this code, the array member of `json_value` becomes of type Object
207 // After executing this code, the key member of `json_value` becomes of type Array,
/commonlibrary/rust/ylong_http/ylong_http/src/response/
Dstatus.rs16 //! The status code of a response is a three-digit integer code that describes
51 pub fn from_u16(code: u16) -> Result<StatusCode, HttpError> { in from_u16()
53 if !(100..1000).contains(&code) { in from_u16()
57 Ok(StatusCode(code)) in from_u16()
95 // Valid status code: 1 <= a <= 9 && 0 <= b <= 9 && 0 <= c <= 9 in from_bytes()
117 /// The 1xx (Informational) class of status code indicates an interim
136 /// The 2xx (Successful) class of status code indicates that the client's
154 /// The 3xx (Redirection) class of status code indicates that further action
172 /// The 4xx (Client Error) class of status code indicates that the client
190 /// The 5xx (Server Error) class of status code indicates that the server is
[all …]
/commonlibrary/c_utils/base/src/rust/
Dashmem.rs20 /// Memory protection corresponding to PROT_NONE in C code.
22 /// Memory protection corresponding to PROT_READ in C code.
24 /// Memory protection corresponding to PROT_WRITE in C code.
26 /// Memory protection corresponding to PROT_EXEC in C code.
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/
Dc_ssl_stream.rs144 Err(ref e) if e.code() == SslErrorCode::ZERO_RETURN => {} in poll_shutdown()
148 if e.code() == SslErrorCode::WANT_READ || e.code() == SslErrorCode::WANT_WRITE => in poll_shutdown()
168 Err(e) => match e.code() { in check_result_to_poll()
/commonlibrary/ets_utils/js_sys_module/process/
Dnative_module_process.cpp503 napi_value code = nullptr; in ThrowError() local
504 uint32_t errCode = 401; // 401:The code parameter of this error is 401 in ThrowError()
505 napi_create_uint32(env, errCode, &code); in ThrowError()
512 napi_set_named_property(env, processError, "code", code); in ThrowError()
553 return ThrowError(env, "Parameter error. The type of code must be number."); in ExitOfProcess()
583 return ThrowError(env, "Parameter error. The type of code must be number."); in GetThreadPriorityOfProcess()
597 return ThrowError(env, "Parameter error. The type of code must be string."); in GetUidForNameOfProcess()
611 return ThrowError(env, "Parameter error. The type of code must be number."); in IsAppUidOfProcess()

12345