Trait cuprate_p2p_core::PeerRequestHandler

source ·
pub trait PeerRequestHandler: Service<PeerRequest, Response = PeerResponse, Error = BoxError, Future = Pin<Box<dyn Future<Output = Result<PeerResponse, BoxError>> + Send + 'static>>> + Send + 'static { }

Implementors§

source§

impl<T> PeerRequestHandler for T
where T: Service<PeerRequest, Response = PeerResponse, Error = BoxError, Future = Pin<Box<dyn Future<Output = Result<PeerResponse, BoxError>> + Send + 'static>>> + Send + 'static,