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