pub struct LndRestClient {
pub client: Client,
/* private fields */
}Fields§
§client: ClientImplementations§
Source§impl LndRestClient
impl LndRestClient
pub fn dud_server() -> Result<Self>
pub fn new(url: &str, data_dir: &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 LndRestClient
impl Clone for LndRestClient
Source§fn clone(&self) -> LndRestClient
fn clone(&self) -> LndRestClient
Returns a duplicate 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 LndRestClient
impl !RefUnwindSafe for LndRestClient
impl Send for LndRestClient
impl Sync for LndRestClient
impl Unpin for LndRestClient
impl !UnwindSafe for LndRestClient
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