pub enum StacksChainEvent {
ChainUpdatedWithBlocks(StacksChainUpdatedWithBlocksData),
ChainUpdatedWithReorg(StacksChainUpdatedWithReorgData),
ChainUpdatedWithMicroblocks(StacksChainUpdatedWithMicroblocksData),
ChainUpdatedWithMicroblocksReorg(StacksChainUpdatedWithMicroblocksReorgData),
}Variants§
ChainUpdatedWithBlocks(StacksChainUpdatedWithBlocksData)
ChainUpdatedWithReorg(StacksChainUpdatedWithReorgData)
ChainUpdatedWithMicroblocks(StacksChainUpdatedWithMicroblocksData)
ChainUpdatedWithMicroblocksReorg(StacksChainUpdatedWithMicroblocksReorgData)
Implementations§
source§impl StacksChainEvent
impl StacksChainEvent
pub fn get_confirmed_blocks(self) -> Vec<StacksBlockData>
pub fn new_block(&self) -> Option<&StacksBlockData>
Trait Implementations§
source§impl Clone for StacksChainEvent
impl Clone for StacksChainEvent
source§fn clone(&self) -> StacksChainEvent
fn clone(&self) -> StacksChainEvent
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 Debug for StacksChainEvent
impl Debug for StacksChainEvent
source§impl PartialEq<StacksChainEvent> for StacksChainEvent
impl PartialEq<StacksChainEvent> for StacksChainEvent
source§fn eq(&self, other: &StacksChainEvent) -> bool
fn eq(&self, other: &StacksChainEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.