Http2ClientConnExec

Trait Http2ClientConnExec 

Source
pub trait Http2ClientConnExec<B, T>:
    Http2UpgradedExec<B::Data>
    + Sealed<(B, T)>
    + Clone
where B: Body, B::Error: Into<Box<dyn Error + Send + Sync>>, T: Read + Write + Unpin,
{ }
Expand description

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E, B, T> Http2ClientConnExec<B, T> for E
where E: Clone + Executor<H2ClientFuture<B, T, E>> + Http2UpgradedExec<B::Data>, B: Body + 'static, B::Error: Into<Box<dyn Error + Send + Sync>>, H2ClientFuture<B, T, E>: Future<Output = ()>, T: Read + Write + Unpin,