Trait cuprate_p2p_core::PeerSyncSvc

source ·
pub trait PeerSyncSvc<Z: NetworkZone>:
    Service<PeerSyncRequest<Z>, Response = PeerSyncResponse<Z>, 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, Z: NetworkZone> PeerSyncSvc<Z> for T
where T: Service<PeerSyncRequest<Z>, Response = PeerSyncResponse<Z>, Error = BoxError> + Send + 'static, T::Future: Future<Output = Result<Self::Response, Self::Error>> + Send + 'static,