docs(ffi): generate FFI documentation (#2447)

This commit is contained in:
Sean McArthur
2021-02-26 19:00:37 -08:00
committed by GitHub
parent 4c946af49c
commit f162ca2f2f
10 changed files with 73 additions and 4 deletions

View File

@@ -10,12 +10,18 @@ use super::http_types::{hyper_request, hyper_response};
use super::io::hyper_io;
use super::task::{hyper_executor, hyper_task, hyper_task_return_type, AsTaskType, WeakExec};
/// An options builder to configure an HTTP client connection.
pub struct hyper_clientconn_options {
builder: conn::Builder,
/// Use a `Weak` to prevent cycles.
exec: WeakExec,
}
/// An HTTP client connection handle.
///
/// These are used to send a request on a single connection. It's possible to
/// send multiple requests on a single connection, such as when HTTP/1
/// keep-alive or HTTP/2 is used.
pub struct hyper_clientconn {
tx: conn::SendRequest<crate::Body>,
}