Struct bdk_chain::spk_client::FullScanRequestBuilder
source · pub struct FullScanRequestBuilder<K> { /* private fields */ }
Expand description
Builds a FullScanRequest
.
Implementations§
source§impl<K> FullScanRequestBuilder<K>where
K: Ord,
impl<K> FullScanRequestBuilder<K>where
K: Ord,
sourcepub fn chain_tip(self, tip: CheckPoint) -> FullScanRequestBuilder<K>
pub fn chain_tip(self, tip: CheckPoint) -> FullScanRequestBuilder<K>
Set the initial chain tip for the full scan request.
This is used to update LocalChain
.
sourcepub fn spks_for_keychain(
self,
keychain: K,
spks: impl IntoIterator<IntoIter = impl Iterator<Item = (u32, ScriptBuf)> + Send + 'static>
) -> FullScanRequestBuilder<K>
pub fn spks_for_keychain( self, keychain: K, spks: impl IntoIterator<IntoIter = impl Iterator<Item = (u32, ScriptBuf)> + Send + 'static> ) -> FullScanRequestBuilder<K>
Set the spk iterator for a given keychain
.
sourcepub fn inspect<F>(self, inspect: F) -> FullScanRequestBuilder<K>
pub fn inspect<F>(self, inspect: F) -> FullScanRequestBuilder<K>
Set the closure that will inspect every sync item visited.
sourcepub fn build(self) -> FullScanRequest<K>
pub fn build(self) -> FullScanRequest<K>
Build the FullScanRequest
.
Trait Implementations§
source§impl<K> Default for FullScanRequestBuilder<K>
impl<K> Default for FullScanRequestBuilder<K>
source§fn default() -> FullScanRequestBuilder<K>
fn default() -> FullScanRequestBuilder<K>
Returns the “default value” for a type. Read more
source§impl<K> From<FullScanRequestBuilder<K>> for FullScanRequest<K>
impl<K> From<FullScanRequestBuilder<K>> for FullScanRequest<K>
source§fn from(builder: FullScanRequestBuilder<K>) -> FullScanRequest<K>
fn from(builder: FullScanRequestBuilder<K>) -> FullScanRequest<K>
Converts to this type from the input type.
source§impl<K: Clone + Ord + Debug> FullScanRequestBuilderExt<K> for FullScanRequestBuilder<K>
impl<K: Clone + Ord + Debug> FullScanRequestBuilderExt<K> for FullScanRequestBuilder<K>
source§fn spks_from_indexer(self, indexer: &KeychainTxOutIndex<K>) -> Self
fn spks_from_indexer(self, indexer: &KeychainTxOutIndex<K>) -> Self
Add spk iterators for each keychain tracked in
indexer
.Auto Trait Implementations§
impl<K> Freeze for FullScanRequestBuilder<K>
impl<K> !RefUnwindSafe for FullScanRequestBuilder<K>
impl<K> Send for FullScanRequestBuilder<K>where
K: Send,
impl<K> !Sync for FullScanRequestBuilder<K>
impl<K> Unpin for FullScanRequestBuilder<K>
impl<K> !UnwindSafe for FullScanRequestBuilder<K>
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