Struct bdk::blockchain::electrum::ElectrumBlockchainConfig
source · pub struct ElectrumBlockchainConfig {
pub url: String,
pub socks5: Option<String>,
pub retry: u8,
pub timeout: Option<u8>,
pub stop_gap: usize,
pub validate_domain: bool,
}
Available on crate feature
electrum
only.Expand description
Configuration for an ElectrumBlockchain
Fields§
§url: String
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with ssl://
or tcp://
and include a port
eg. ssl://electrum.blockstream.info:60002
socks5: Option<String>
URL of the socks5 proxy server or a Tor service
retry: u8
Request retry count
timeout: Option<u8>
Request timeout (seconds)
stop_gap: usize
Stop searching addresses for transactions after finding an unused gap of this length
validate_domain: bool
Validate the domain when using SSL
Trait Implementations§
source§impl Clone for ElectrumBlockchainConfig
impl Clone for ElectrumBlockchainConfig
source§fn clone(&self) -> ElectrumBlockchainConfig
fn clone(&self) -> ElectrumBlockchainConfig
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 moresource§impl Debug for ElectrumBlockchainConfig
impl Debug for ElectrumBlockchainConfig
source§impl<'de> Deserialize<'de> for ElectrumBlockchainConfig
impl<'de> Deserialize<'de> for ElectrumBlockchainConfig
source§fn 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
source§impl From<ElectrumBlockchainConfig> for AnyBlockchainConfig
impl From<ElectrumBlockchainConfig> for AnyBlockchainConfig
source§fn from(inner: ElectrumBlockchainConfig) -> Self
fn from(inner: ElectrumBlockchainConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for ElectrumBlockchainConfig
impl PartialEq for ElectrumBlockchainConfig
source§fn eq(&self, other: &ElectrumBlockchainConfig) -> bool
fn eq(&self, other: &ElectrumBlockchainConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ElectrumBlockchainConfig
impl Serialize for ElectrumBlockchainConfig
impl Eq for ElectrumBlockchainConfig
impl StructuralEq for ElectrumBlockchainConfig
impl StructuralPartialEq for ElectrumBlockchainConfig
Auto Trait Implementations§
impl RefUnwindSafe for ElectrumBlockchainConfig
impl Send for ElectrumBlockchainConfig
impl Sync for ElectrumBlockchainConfig
impl Unpin for ElectrumBlockchainConfig
impl UnwindSafe for ElectrumBlockchainConfig
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