pub struct LndRestNode { /* private fields */ }Implementations§
Source§impl LndRestNode
impl LndRestNode
pub fn new(cfg: LndRestConfig) -> Result<Self, Error>
pub fn with_client(cfg: LndRestConfig, client: Client) -> Self
Trait Implementations§
Source§impl LightningNode for LndRestNode
impl LightningNode for LndRestNode
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,
Auto Trait Implementations§
impl Freeze for LndRestNode
impl !RefUnwindSafe for LndRestNode
impl Send for LndRestNode
impl Sync for LndRestNode
impl Unpin for LndRestNode
impl UnsafeUnpin for LndRestNode
impl !UnwindSafe for LndRestNode
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