pub struct FullScanRequestBuilder<K> { /* private fields */ }
Expand description
Builds a FullScanRequest
.
Implementations§
Source§impl<K: Ord> FullScanRequestBuilder<K>
impl<K: Ord> FullScanRequestBuilder<K>
Sourcepub fn chain_tip(self, tip: CheckPoint) -> Self
pub fn chain_tip(self, tip: CheckPoint) -> Self
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 = Indexed<ScriptBuf>> + Send + 'static>,
) -> Self
pub fn spks_for_keychain( self, keychain: K, spks: impl IntoIterator<IntoIter = impl Iterator<Item = Indexed<ScriptBuf>> + Send + 'static>, ) -> Self
Set the spk iterator for a given keychain
.
Sourcepub fn inspect<F>(self, inspect: F) -> Self
pub fn inspect<F>(self, inspect: F) -> Self
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§impl<K> From<FullScanRequestBuilder<K>> for FullScanRequest<K>
impl<K> From<FullScanRequestBuilder<K>> for FullScanRequest<K>
Source§fn from(builder: FullScanRequestBuilder<K>) -> Self
fn from(builder: FullScanRequestBuilder<K>) -> Self
Converts to this type from the input type.
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