Struct lnurl::blocking::BlockingClient
source · pub struct BlockingClient { /* private fields */ }Implementations§
source§impl BlockingClient
impl BlockingClient
sourcepub fn from_builder(builder: Builder) -> Result<Self, Error>
pub fn from_builder(builder: Builder) -> Result<Self, Error>
build a blocking client from a Builder
sourcepub fn from_agent(agent: Agent) -> Self
pub fn from_agent(agent: Agent) -> Self
build a blocking client from an Agent
pub fn make_request(&self, url: &str) -> Result<LnUrlResponse, Error>
pub fn get_invoice( &self, pay: &PayResponse, msats: u64 ) -> Result<LnURLPayInvoice, Error>
pub fn do_withdrawal( &self, withdrawal: &WithdrawalResponse, invoice: &str ) -> Result<Response, Error>
Trait Implementations§
source§impl Clone for BlockingClient
impl Clone for BlockingClient
source§fn clone(&self) -> BlockingClient
fn clone(&self) -> BlockingClient
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 more