pub struct BlockchainRpcHandler { /* private fields */ }Expand description
RPC handler for blockchain queries and operations
Implementations§
Source§impl BlockchainRpcHandler
impl BlockchainRpcHandler
Sourcepub fn new(
blockchain: Arc<BlockchainService>,
mempool: Arc<MempoolService>,
fee_estimator: Arc<RwLock<FeeEstimator>>,
chain_state: Arc<dyn ChainStateStore>,
block_index: Arc<RwLock<BlockIndex>>,
) -> Self
pub fn new( blockchain: Arc<BlockchainService>, mempool: Arc<MempoolService>, fee_estimator: Arc<RwLock<FeeEstimator>>, chain_state: Arc<dyn ChainStateStore>, block_index: Arc<RwLock<BlockIndex>>, ) -> Self
Create a new blockchain RPC handler.
Trait Implementations§
Source§impl RpcHandler for BlockchainRpcHandler
impl RpcHandler for BlockchainRpcHandler
Source§fn handle_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
_params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, RpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
method: &'life1 str,
_params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, RpcError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handles an RPC method call. Read more
Auto Trait Implementations§
impl Freeze for BlockchainRpcHandler
impl !RefUnwindSafe for BlockchainRpcHandler
impl Send for BlockchainRpcHandler
impl Sync for BlockchainRpcHandler
impl Unpin for BlockchainRpcHandler
impl UnsafeUnpin for BlockchainRpcHandler
impl !UnwindSafe for BlockchainRpcHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more