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
sourceimpl Clone for CompactFiltersBlockchainConfig
impl Clone for CompactFiltersBlockchainConfig
sourcefn clone(&self) -> CompactFiltersBlockchainConfig
fn clone(&self) -> CompactFiltersBlockchainConfig
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<'de> Deserialize<'de> for CompactFiltersBlockchainConfig
impl<'de> Deserialize<'de> for CompactFiltersBlockchainConfig
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<CompactFiltersBlockchainConfig> for AnyBlockchainConfig
impl From<CompactFiltersBlockchainConfig> for AnyBlockchainConfig
sourcefn from(inner: CompactFiltersBlockchainConfig) -> Self
fn from(inner: CompactFiltersBlockchainConfig) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<CompactFiltersBlockchainConfig> for CompactFiltersBlockchainConfig
impl PartialEq<CompactFiltersBlockchainConfig> for CompactFiltersBlockchainConfig
sourcefn 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 ==
. Read more
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
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