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, zap_request: Option<String>, comment: Option<&str>, ) -> Result<LnURLPayInvoice, Error>
pub fn do_withdrawal( &self, withdrawal: &WithdrawalResponse, invoice: &str, ) -> Result<Response, Error>
pub fn open_channel( &self, channel: &ChannelResponse, node_pubkey: PublicKey, private: bool, ) -> Result<Response, Error>
pub fn lnurl_auth( &self, lnurl: LnUrl, sig: Signature, key: PublicKey, ) -> 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 duplicate 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 BlockingClient
impl !RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl !UnwindSafe for BlockingClient
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