Skip to main content

RemoteQueryTransport

Trait RemoteQueryTransport 

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

Source

fn capabilities( &self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>

👎Deprecated since 2.3.0:

use ProxyExchange; removed in 3.0

Fetch the executor’s exact signed capability advertisement.

Source

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

Exchange one exact canonical request for one exact signed reply.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§