Skip to main content

QueryableProxyInterface

Trait QueryableProxyInterface 

Source
pub trait QueryableProxyInterface: Send + Sync {
    type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send;

    // Required method
    fn query(&self) -> Self::QueryResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn query(&self) -> Self::QueryResponseFut

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§