pub struct HTTPHrnResolver { /* private fields */ }Expand description
An HrnResolver which uses reqwest and dns.google (8.8.8.8) to resolve Human Readable
Names into bitcoin payment instructions.
Note that using this may reveal our IP address to the recipient and information about who we’re
paying to Google (via dns.google).
Implementations§
Source§impl HTTPHrnResolver
impl HTTPHrnResolver
Sourcepub fn with_client(client: Client) -> Self
pub fn with_client(client: Client) -> Self
Create a new HTTPHrnResolver with a custom reqwest::Client.
Trait Implementations§
Source§impl Clone for HTTPHrnResolver
impl Clone for HTTPHrnResolver
Source§fn clone(&self) -> HTTPHrnResolver
fn clone(&self) -> HTTPHrnResolver
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 moreSource§impl Debug for HTTPHrnResolver
impl Debug for HTTPHrnResolver
Source§impl Default for HTTPHrnResolver
impl Default for HTTPHrnResolver
Source§impl HrnResolver for HTTPHrnResolver
impl HrnResolver for HTTPHrnResolver
Source§fn resolve_hrn<'a>(
&'a self,
hrn: &'a HumanReadableName,
) -> HrnResolutionFuture<'a>
fn resolve_hrn<'a>( &'a self, hrn: &'a HumanReadableName, ) -> HrnResolutionFuture<'a>
Resolves the given Human Readable Name into a
HrnResolution containing a result which
can be further parsed as payment instructions.Source§fn resolve_lnurl<'a>(&'a self, url: &'a str) -> HrnResolutionFuture<'a>
fn resolve_lnurl<'a>(&'a self, url: &'a str) -> HrnResolutionFuture<'a>
Resolves the given Lnurl into a
HrnResolution containing a result which
can be further parsed as payment instructions.Source§fn resolve_lnurl_to_invoice<'a>(
&'a self,
callback: String,
amt: Amount,
expected_description_hash: [u8; 32],
) -> LNURLResolutionFuture<'a>
fn resolve_lnurl_to_invoice<'a>( &'a self, callback: String, amt: Amount, expected_description_hash: [u8; 32], ) -> LNURLResolutionFuture<'a>
Auto Trait Implementations§
impl Freeze for HTTPHrnResolver
impl !RefUnwindSafe for HTTPHrnResolver
impl Send for HTTPHrnResolver
impl Sync for HTTPHrnResolver
impl Unpin for HTTPHrnResolver
impl !UnwindSafe for HTTPHrnResolver
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