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,
}
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
Trait Implementations
sourceimpl Clone for ElectrumBlockchainConfig
impl Clone for ElectrumBlockchainConfig
sourcefn clone(&self) -> ElectrumBlockchainConfig
fn clone(&self) -> ElectrumBlockchainConfig
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 moresourceimpl Debug for ElectrumBlockchainConfig
impl Debug for ElectrumBlockchainConfig
sourceimpl<'de> Deserialize<'de> for ElectrumBlockchainConfig
impl<'de> Deserialize<'de> for ElectrumBlockchainConfig
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<ElectrumBlockchainConfig> for AnyBlockchainConfig
impl From<ElectrumBlockchainConfig> for AnyBlockchainConfig
sourcefn from(inner: ElectrumBlockchainConfig) -> Self
fn from(inner: ElectrumBlockchainConfig) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ElectrumBlockchainConfig> for ElectrumBlockchainConfig
impl PartialEq<ElectrumBlockchainConfig> for ElectrumBlockchainConfig
sourcefn eq(&self, other: &ElectrumBlockchainConfig) -> bool
fn eq(&self, other: &ElectrumBlockchainConfig) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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