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§
Sourcetype DataStream: AsyncRead + AsyncWrite + Send + Unpin
type DataStream: AsyncRead + AsyncWrite + Send + Unpin
The data stream type.
Required Methods§
Sourcefn begin_dir_stream<'async_trait>(
self: Arc<Self>,
) -> Pin<Box<dyn Future<Output = Result<Self::DataStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
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.