zakura-node-services 1.0.1

The interfaces of some Zakura node services. Internal crate, published to support cargo install zakura
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Trait alias for mempool-related Tower service.
//!
//! This trait provides a convenient alias for `tower::Service`
//! implementations that operate on Zebra mempool request and response types.
//!
//! - [`MempoolService`]: for services that handle unmined transaction-related requests.

use crate::{
    mempool::{Request, Response},
    service_traits::ZakuraService,
};

/// Trait alias for services handling mempool requests.
pub trait MempoolService: ZakuraService<Request, Response> {}

impl<T> MempoolService for T where T: ZakuraService<Request, Response> {}