Struct chainhook_sdk::indexer::bitcoin::BitcoinBlockPool
source · pub struct BitcoinBlockPool { /* private fields */ }Implementations§
source§impl BitcoinBlockPool
impl BitcoinBlockPool
pub fn new() -> BitcoinBlockPool
pub fn process_block( &mut self, block: BitcoinBlockData, ctx: &Context ) -> Result<Option<BitcoinChainEvent>, String>
pub fn collect_and_prune_confirmed_blocks( &mut self, chain_event: &mut BitcoinChainEvent, ctx: &Context )
pub fn generate_block_chain_event( &mut self, canonical_segment: &ChainSegment, other_segment: &ChainSegment, ctx: &Context ) -> Result<BitcoinChainEvent, ChainSegmentIncompatibility>
Auto Trait Implementations§
impl RefUnwindSafe for BitcoinBlockPool
impl Send for BitcoinBlockPool
impl Sync for BitcoinBlockPool
impl Unpin for BitcoinBlockPool
impl UnwindSafe for BitcoinBlockPool
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.