Trait LnRpcClient
Source pub trait LnRpcClient {
type Error: Error + Send + Sync + 'static;
// Required methods
fn get_invoice<'a, 'life0, 'async_trait>(
&'life0 self,
amount_msat: Option<u64>,
description: Bolt11InvoiceDescription<'a>,
expiry_secs: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn get_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<LnMetrics, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_features(&self) -> Option<&LnFeatures>;
}