pub struct MiningRpcHandler { /* private fields */ }Expand description
RPC handler for mining operations
Implementations§
Source§impl MiningRpcHandler
impl MiningRpcHandler
Sourcepub fn new(mining: Arc<MiningService>) -> Self
pub fn new(mining: Arc<MiningService>) -> Self
Create a new mining RPC handler.
Trait Implementations§
Source§impl RpcHandler for MiningRpcHandler
impl RpcHandler for MiningRpcHandler
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 MiningRpcHandler
impl !RefUnwindSafe for MiningRpcHandler
impl Send for MiningRpcHandler
impl Sync for MiningRpcHandler
impl Unpin for MiningRpcHandler
impl UnsafeUnpin for MiningRpcHandler
impl !UnwindSafe for MiningRpcHandler
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