pub trait NetworkExt {
// Required methods
fn query(
&self,
peer_id: &PeerId,
request: Request,
) -> impl Future<Output = Result<Response>> + Send;
fn send(
&self,
peer_id: &PeerId,
request: Request,
) -> impl Future<Output = Result<()>> + Send;
}Required Methods§
fn query( &self, peer_id: &PeerId, request: Request, ) -> impl Future<Output = Result<Response>> + Send
fn send( &self, peer_id: &PeerId, request: Request, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.