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