H3Acceptor

Trait H3Acceptor 

Source
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§

Source

type CONN: Connection<Bytes, OpenStreams = Self::OS, SendStream = Self::SS, RecvStream = Self::RS, BidiStream = Self::BS> + Send + 'static

Source

type OS: OpenStreams<Bytes, BidiStream = Self::BS> + Clone + Send

Source

type SS: SendStream<Bytes> + Send

Source

type RS: RecvStream + Send + 'static

Source

type BS: BidiStream<Bytes, RecvStream = Self::RS, SendStream = Self::SS> + Send + 'static

Required Methods§

Source

fn accept( &mut self, ) -> impl Future<Output = Result<Option<Self::CONN>, Error>> + Send

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§