Skip to main content

PeerRpcClientExecutor

Trait PeerRpcClientExecutor 

Source
pub trait PeerRpcClientExecutor: Send + Sync {
    // Required method
    fn call_peer(
        &self,
        endpoint_url: &str,
        kind: PeerRpcCallKind,
        request: PeerRpcOutboundRequest,
    ) -> Result<PeerRpcResponse, PeerRpcError>;
}
Expand description

Provider contract used to invoke a direct peer endpoint.

Required Methods§

Source

fn call_peer( &self, endpoint_url: &str, kind: PeerRpcCallKind, request: PeerRpcOutboundRequest, ) -> Result<PeerRpcResponse, PeerRpcError>

Executes one query or command against endpoint_url.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§