Trait cuprate_p2p_core::AddressBook

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