Home
last modified time | relevance | path

Searched refs:hyper_code (Results 1 – 5 of 5) sorted by relevance

/aosp_15_r20/external/rust/android-crates-io/crates/hyper/src/ffi/
Dhttp_types.rs6 use super::error::hyper_code;
55 …_request_set_method(req: *mut hyper_request, method: *const u8, method_len: size_t) -> hyper_code {
59 let req = non_null!(&mut *req ?= hyper_code::HYPERE_INVALID_ARG);
63 hyper_code::HYPERE_OK
66 hyper_code::HYPERE_INVALID_ARG
87 … fn hyper_request_set_uri(req: *mut hyper_request, uri: *const u8, uri_len: size_t) -> hyper_code {
91 let req = non_null!(&mut *req ?= hyper_code::HYPERE_INVALID_ARG);
95 hyper_code::HYPERE_OK
98 hyper_code::HYPERE_INVALID_ARG
120 ) -> hyper_code {
[all …]
Derror.rs8 pub enum hyper_code { enum
32 fn code(&self) -> hyper_code { in code() argument
37 ErrorKind::Parse(_) => hyper_code::HYPERE_INVALID_PEER_MESSAGE, in code()
38 ErrorKind::IncompleteMessage => hyper_code::HYPERE_UNEXPECTED_EOF, in code()
39 ErrorKind::User(User::AbortedByCallback) => hyper_code::HYPERE_ABORTED_BY_CALLBACK, in code()
41 _ => hyper_code::HYPERE_ERROR, in code()
67 fn hyper_error_code(err: *const hyper_error) -> hyper_code {
68 non_null!(&*err ?= hyper_code::HYPERE_INVALID_ARG).code()
Dclient.rs9 use super::error::hyper_code;
153 …hyper_clientconn_options_http2(opts: *mut hyper_clientconn_options, enabled: c_int) -> hyper_code {
156 let opts = non_null! { &mut *opts ?= hyper_code::HYPERE_INVALID_ARG };
158 hyper_code::HYPERE_OK
165 hyper_code::HYPERE_FEATURE_NOT_ENABLED
177 …clientconn_options_headers_raw(opts: *mut hyper_clientconn_options, enabled: c_int) -> hyper_code {
178 let opts = non_null! { &mut *opts ?= hyper_code::HYPERE_INVALID_ARG };
180 hyper_code::HYPERE_OK
Dtask.rs14 use super::error::hyper_code;
207 fn hyper_executor_push(exec: *const hyper_executor, task: *mut hyper_task) -> hyper_code {
208 let exec = non_null!(&*exec ?= hyper_code::HYPERE_INVALID_ARG);
209 let task = non_null!(Box::from_raw(task) ?= hyper_code::HYPERE_INVALID_ARG);
211 hyper_code::HYPERE_OK
/aosp_15_r20/external/curl/lib/
H A Dc-hyper.c391 hyper_code code = hyper_error_code(hypererr); in Curl_hyper_stream()
840 hyper_code rc; in Curl_http()