pub struct CompactFiltersBlockchainConfig {
pub peers: Vec<BitcoinPeerConfig>,
pub network: Network,
pub storage_dir: String,
pub skip_blocks: Option<usize>,
}
Available on crate feature
compact_filters
only.Expand description
Configuration for a CompactFiltersBlockchain
Fields§
§peers: Vec<BitcoinPeerConfig>
List of peers to try to connect to for asking headers and filters
network: Network
Network used
storage_dir: String
Storage dir to save partially downloaded headers and full blocks. Should be a separate directory per descriptor. Consider using crate::wallet::wallet_name_from_descriptor for this.
skip_blocks: Option<usize>
Optionally skip initial skip_blocks
blocks (default: 0)
Trait Implementations§
source§impl Clone for CompactFiltersBlockchainConfig
impl Clone for CompactFiltersBlockchainConfig
source§fn clone(&self) -> CompactFiltersBlockchainConfig
fn clone(&self) -> CompactFiltersBlockchainConfig
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<'de> Deserialize<'de> for CompactFiltersBlockchainConfig
impl<'de> Deserialize<'de> for CompactFiltersBlockchainConfig
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<CompactFiltersBlockchainConfig> for AnyBlockchainConfig
impl From<CompactFiltersBlockchainConfig> for AnyBlockchainConfig
source§fn from(inner: CompactFiltersBlockchainConfig) -> Self
fn from(inner: CompactFiltersBlockchainConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for CompactFiltersBlockchainConfig
impl PartialEq for CompactFiltersBlockchainConfig
source§fn eq(&self, other: &CompactFiltersBlockchainConfig) -> bool
fn eq(&self, other: &CompactFiltersBlockchainConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompactFiltersBlockchainConfig
impl StructuralEq for CompactFiltersBlockchainConfig
impl StructuralPartialEq for CompactFiltersBlockchainConfig
Auto Trait Implementations§
impl RefUnwindSafe for CompactFiltersBlockchainConfig
impl Send for CompactFiltersBlockchainConfig
impl Sync for CompactFiltersBlockchainConfig
impl Unpin for CompactFiltersBlockchainConfig
impl UnwindSafe for CompactFiltersBlockchainConfig
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