pub trait H3Connector:
Send
+ 'static
+ Clone {
type CONN: Connection<Bytes, OpenStreams = Self::OS, SendStream = Self::SS, RecvStream = Self::RS> + Send;
type OS: OpenStreams<Bytes, BidiStream = Self::BS> + Clone + Send;
type SS: SendStream<Bytes> + Send;
type RS: RecvStream + Send;
type BS: BidiStream<Bytes, RecvStream = Self::RS, SendStream = Self::SS> + Send;
// Required method
fn connect(&self) -> impl Future<Output = Result<Self::CONN, Error>> + Send;
}Required Associated Types§
type CONN: Connection<Bytes, OpenStreams = Self::OS, SendStream = Self::SS, RecvStream = Self::RS> + Send
type OS: OpenStreams<Bytes, BidiStream = Self::BS> + Clone + Send
type SS: SendStream<Bytes> + Send
type RS: RecvStream + Send
type BS: BidiStream<Bytes, RecvStream = Self::RS, SendStream = Self::SS> + Send
Required Methods§
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.