pub struct AsyncClient {
pub client: Client,
}
Fields§
§client: Client
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 Freeze for AsyncClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more