Trait tor_hsservice::publish::reactor::MockableClientCirc

source ·
pub(crate) trait MockableClientCirc: Send + Sync {
    type DataStream: AsyncRead + AsyncWrite + Send + Unpin;

    // Required method
    fn begin_dir_stream<'async_trait>(
        self: Arc<Self>
    ) -> Pin<Box<dyn Future<Output = Result<Self::DataStream, Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Mockable client circuit

Required Associated Types§

source

type DataStream: AsyncRead + AsyncWrite + Send + Unpin

The data stream type.

Required Methods§

source

fn begin_dir_stream<'async_trait>( self: Arc<Self> ) -> Pin<Box<dyn Future<Output = Result<Self::DataStream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Start a new stream to the last relay in the circuit, using a BEGIN_DIR cell.

Implementors§