Trait cuprate_p2p_core::ProtocolRequestHandler

source ·
pub trait ProtocolRequestHandler:
    Service<ProtocolRequest, Response = ProtocolResponse, Error = BoxError, Future = Self::Future2>
    + Send
    + 'static {
    type Future2: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static;
}

Required Associated Types§

source

type Future2: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static

Implementors§

source§

impl<T> ProtocolRequestHandler for T
where T: Service<ProtocolRequest, Response = ProtocolResponse, Error = BoxError> + Send + 'static, T::Future: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static,