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 get_latest_block_identifier(&self) -> Option<&BlockIdentifier>
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 ==.source§impl Serialize for StacksChainEvent
impl Serialize for StacksChainEvent
impl StructuralPartialEq for StacksChainEvent
Auto Trait Implementations§
impl RefUnwindSafe for StacksChainEvent
impl Send for StacksChainEvent
impl Sync for StacksChainEvent
impl Unpin for StacksChainEvent
impl UnwindSafe for StacksChainEvent
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