/// An executor to spawn http2 futures for the client. /// /// This trait is implemented for any type that implements [`Executor`] /// trait for any future. /// /// This trait is sealed and cannot be implemented for types outside this crate. /// /// [`Executor`]: crate::rt::Executor pubtrait Http2ClientConnExec<B, T>: super::Http2UpgradedExec<B::Data> + sealed_client::Sealed<(B, T)> + Clone where
B: http_body::Body,
B::Error: Into<Box<dyn Error + Send + Sync>>,
T: Read + Write + Unpin,
{ #[doc(hidden)] fn execute_h2_future(&mutself, future: H2ClientFuture<B, T, Self>);
}
#[cfg(all(feature = "server", feature = "http2"))] #[cfg_attr(docsrs, doc(cfg(all(feature = "server", feature = "http2"))))] mod h2_server { usecrate::{proto::h2::server::H2Stream, rt::Executor}; use http_body::Body; use std::future::Future;
/// An executor to spawn http2 connections. /// /// This trait is implemented for any type that implements [`Executor`] /// trait for any future. /// /// This trait is sealed and cannot be implemented for types outside this crate. /// /// [`Executor`]: crate::rt::Executor pubtrait Http2ServerConnExec<F, B: Body>: super::Http2UpgradedExec<B::Data> + sealed::Sealed<(F, B)> + Clone
{ #[doc(hidden)] fn execute_h2stream(&mutself, fut: H2Stream<F, B, Self>);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.