Struct lnurl::async::AsyncClient
source · pub struct AsyncClient { /* private fields */ }Implementations§
source§impl AsyncClient
impl AsyncClient
sourcepub fn from_builder(builder: Builder) -> Result<Self, Error>
pub fn from_builder(builder: Builder) -> Result<Self, Error>
build an async client from a builder
sourcepub fn from_client(client: Client) -> Self
pub fn from_client(client: Client) -> Self
build an async client from the base url and Client
pub async fn make_request(&self, url: &str) -> Result<LnUrlResponse, Error>
pub async fn get_invoice( &self, pay: &PayResponse, msats: u64, zap_request: Option<String>, comment: Option<&str> ) -> Result<LnURLPayInvoice, Error>
pub async fn do_withdrawal( &self, withdrawal: &WithdrawalResponse, invoice: &str ) -> Result<Response, Error>
pub async fn open_channel( &self, channel: &ChannelResponse, node_pubkey: PublicKey, private: bool ) -> Result<Response, Error>
pub async fn lnurl_auth( &self, lnurl: LnUrl, sig: Signature, key: PublicKey ) -> Result<Response, Error>
Trait Implementations§
source§impl Clone for AsyncClient
impl Clone for AsyncClient
source§fn clone(&self) -> AsyncClient
fn clone(&self) -> AsyncClient
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 !RefUnwindSafe for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl !UnwindSafe for AsyncClient
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