Struct bdk::blockchain::esplora::EsploraBlockchainConfig
source · [−]pub struct EsploraBlockchainConfig {
pub base_url: String,
pub proxy: Option<String>,
pub concurrency: Option<u8>,
pub stop_gap: usize,
pub timeout: Option<u64>,
}
esplora
only.Expand description
Configuration for an EsploraBlockchain
Fields
base_url: String
Base URL of the esplora service
eg. https://blockstream.info/api/
proxy: Option<String>
Optional URL of the proxy to use to make requests to the Esplora server
The string should be formatted as: <protocol>://<user>:<password>@host:<port>
.
Note that the format of this value and the supported protocols change slightly between the
sync version of esplora (using ureq
) and the async version (using reqwest
). For more
details check with the documentation of the two crates. Both of them are compiled with
the socks
feature enabled.
The proxy is ignored when targeting wasm32
.
concurrency: Option<u8>
Number of parallel requests sent to the esplora service (default: 4)
stop_gap: usize
Stop searching addresses for transactions after finding an unused gap of this length.
timeout: Option<u64>
Socket timeout.
Implementations
Trait Implementations
sourceimpl Clone for EsploraBlockchainConfig
impl Clone for EsploraBlockchainConfig
sourcefn clone(&self) -> EsploraBlockchainConfig
fn clone(&self) -> EsploraBlockchainConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EsploraBlockchainConfig
impl Debug for EsploraBlockchainConfig
sourceimpl<'de> Deserialize<'de> for EsploraBlockchainConfig
impl<'de> Deserialize<'de> for EsploraBlockchainConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<EsploraBlockchainConfig> for AnyBlockchainConfig
impl From<EsploraBlockchainConfig> for AnyBlockchainConfig
sourcefn from(inner: EsploraBlockchainConfig) -> Self
fn from(inner: EsploraBlockchainConfig) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<EsploraBlockchainConfig> for EsploraBlockchainConfig
impl PartialEq<EsploraBlockchainConfig> for EsploraBlockchainConfig
sourcefn eq(&self, other: &EsploraBlockchainConfig) -> bool
fn eq(&self, other: &EsploraBlockchainConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EsploraBlockchainConfig) -> bool
fn ne(&self, other: &EsploraBlockchainConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for EsploraBlockchainConfig
impl Serialize for EsploraBlockchainConfig
impl StructuralPartialEq for EsploraBlockchainConfig
Auto Trait Implementations
impl RefUnwindSafe for EsploraBlockchainConfig
impl Send for EsploraBlockchainConfig
impl Sync for EsploraBlockchainConfig
impl Unpin for EsploraBlockchainConfig
impl UnwindSafe for EsploraBlockchainConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more