pub struct AsyncClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AsyncClient
impl AsyncClient
pub fn new() -> Self
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 verify(&self, url: &str) -> Result<VerifyResponse, 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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsyncClient
impl Debug for AsyncClient
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncClient
impl !UnwindSafe for AsyncClient
impl Freeze for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl UnsafeUnpin 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