pub struct LndClient {
pub host: String,
pub cert_path: String,
pub macaroon_path: String,
}
Fields§
§host: String
§cert_path: String
§macaroon_path: String
Implementations§
Source§impl LndClient
impl LndClient
pub fn new(host: String, cert_path: String, macaroon_path: String) -> LndClient
pub async fn new_address(&self) -> Result<NewAddressResponse>
pub async fn add_invoice( &self, req: ClusterAddInvoice, ) -> Result<AddInvoiceResponse>
pub async fn lookup_invoice( &self, r_hash: &str, ) -> Result<LookupInvoiceResponse>
pub async fn send_payment_sync( &self, req: LndSendPaymentSyncReq, ) -> Result<LndSendPaymentSyncRes>
pub async fn list_unspent(&self) -> Result<ListUnspentResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LndClient
impl RefUnwindSafe for LndClient
impl Send for LndClient
impl Sync for LndClient
impl Unpin for LndClient
impl UnwindSafe for LndClient
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