pub trait RemoteQueryTransport:
Send
+ Sync
+ 'static {
// Required methods
fn capabilities(
&self,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>;
fn exchange<'a>(
&'a self,
request: &'a [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'a>>;
}👎Deprecated since 2.3.0:
use ProxyExchange; removed in 3.0
Expand description
The 2.2 name of ProxyExchange. Every implementation is a
ProxyExchange.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".