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§
Sourcefn call_peer(
&self,
endpoint_url: &str,
kind: PeerRpcCallKind,
request: PeerRpcOutboundRequest,
) -> Result<PeerRpcResponse, PeerRpcError>
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".