CommonProxyInterface

Trait CommonProxyInterface 

Source
pub trait CommonProxyInterface: Send + Sync {
    type QueryResponseFut: Future<Output = Result<(BlockInfo, u64), Error>> + Send;
    type QueueResponseFut: Future<Output = Result<(i32, BlockOp), Error>> + Send;

    // Required methods
    fn query(&self) -> Self::QueryResponseFut;
    fn queue(&self, txn: BlockOp) -> Self::QueueResponseFut;
}

Required Associated Types§

Source

type QueryResponseFut: Future<Output = Result<(BlockInfo, u64), Error>> + Send

Source

type QueueResponseFut: Future<Output = Result<(i32, BlockOp), Error>> + Send

Required Methods§

Source

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

Source

fn queue(&self, txn: BlockOp) -> Self::QueueResponseFut

Implementors§