pub struct LightningClient {
pub client: Client,
/* private fields */
}Fields§
§client: ClientImplementations§
Source§impl LightningClient
impl LightningClient
pub async fn dud_server() -> Result<Self>
pub async fn new(url: &'static str, data_dir: &'static str) -> Result<Self>
pub async fn get_info(&self) -> Result<LndInfo>
pub async fn channel_balance(&self) -> Result<()>
pub async fn get_invoice( &self, form: LndInvoiceRequestBody, ) -> Result<LndPaymentInvoice>
pub async fn list_invoices(&self) -> Result<Vec<LndInvoice>>
pub async fn new_onchain_address( &self, request: LndNextAddressRequest, ) -> Result<LndNewAddress>
pub async fn list_onchain_addresses( &self, account: &str, address_type: OnchainAddressType, ) -> Result<Vec<LndAddressProperty>>
pub async fn invoice_channel(&self) -> Result<LndWebsocket>
pub async fn lookup_invoice( &self, r_hash_url_safe: String, ) -> Result<LndHodlInvoiceState>
pub async fn subscribe_to_invoice( &self, r_hash_url_safe: String, ) -> Result<LndWebsocket>
pub async fn get_hodl_invoice( &self, payment_hash: String, amount: u64, ) -> Result<LndHodlInvoice>
pub async fn settle_htlc(&self, preimage: String) -> Result<()>
pub async fn cancel_htlc(&self, payment_hash: String) -> Result<()>
Trait Implementations§
Source§impl Clone for LightningClient
impl Clone for LightningClient
Source§fn clone(&self) -> LightningClient
fn clone(&self) -> LightningClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LightningClient
impl !RefUnwindSafe for LightningClient
impl Send for LightningClient
impl Sync for LightningClient
impl Unpin for LightningClient
impl !UnwindSafe for LightningClient
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