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