Trait Lightning

Source
pub trait Lightning: Send + Sync {
    // Required methods
    fn is_invoice_paid<'life0, 'async_trait>(
        &'life0 self,
        invoice: String,
    ) -> Pin<Box<dyn Future<Output = Result<bool, MokshaMintError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_invoice<'life0, 'async_trait>(
        &'life0 self,
        amount: u64,
    ) -> Pin<Box<dyn Future<Output = Result<CreateInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pay_invoice<'life0, 'async_trait>(
        &'life0 self,
        payment_request: String,
    ) -> Pin<Box<dyn Future<Output = Result<PayInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn decode_invoice<'life0, 'async_trait>(
        &'life0 self,
        payment_request: String,
    ) -> Pin<Box<dyn Future<Output = Result<LNInvoice, MokshaMintError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn is_invoice_paid<'life0, 'async_trait>( &'life0 self, invoice: String, ) -> Pin<Box<dyn Future<Output = Result<bool, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_invoice<'life0, 'async_trait>( &'life0 self, amount: u64, ) -> Pin<Box<dyn Future<Output = Result<CreateInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn pay_invoice<'life0, 'async_trait>( &'life0 self, payment_request: String, ) -> Pin<Box<dyn Future<Output = Result<PayInvoiceResult, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn decode_invoice<'life0, 'async_trait>( &'life0 self, payment_request: String, ) -> Pin<Box<dyn Future<Output = Result<LNInvoice, MokshaMintError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§