Skip to main content

LightningNode

Trait LightningNode 

Source
pub trait LightningNode: Send + Sync {
    // Required methods
    fn create_invoice<'life0, 'async_trait>(
        &'life0 self,
        req: InvoiceCreateRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Invoice, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn lookup_invoice<'life0, 'life1, 'async_trait>(
        &'life0 self,
        payment_hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<InvoiceLookup, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn pay_invoice<'life0, 'life1, 'async_trait>(
        &'life0 self,
        bolt11: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<PaymentResult, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn create_invoice<'life0, 'async_trait>( &'life0 self, req: InvoiceCreateRequest, ) -> Pin<Box<dyn Future<Output = Result<Invoice, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn lookup_invoice<'life0, 'life1, 'async_trait>( &'life0 self, payment_hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<InvoiceLookup, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn pay_invoice<'life0, 'life1, 'async_trait>( &'life0 self, bolt11: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<PaymentResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§