Enum chainhook_sdk::observer::ObserverEvent
source · pub enum ObserverEvent {
Show 14 variants
Error(String),
Fatal(String),
Info(String),
BitcoinChainEvent((BitcoinChainEvent, PredicateEvaluationReport)),
StacksChainEvent((StacksChainEvent, PredicateEvaluationReport)),
NotifyBitcoinTransactionProxied,
PredicateRegistered(ChainhookSpecification),
PredicateDeregistered(ChainhookSpecification),
PredicateEnabled(ChainhookSpecification),
BitcoinPredicateTriggered(BitcoinChainhookOccurrencePayload),
StacksPredicateTriggered(StacksChainhookOccurrencePayload),
HooksTriggered(usize),
Terminate,
StacksChainMempoolEvent(StacksChainMempoolEvent),
}Variants§
Error(String)
Fatal(String)
Info(String)
BitcoinChainEvent((BitcoinChainEvent, PredicateEvaluationReport))
StacksChainEvent((StacksChainEvent, PredicateEvaluationReport))
NotifyBitcoinTransactionProxied
PredicateRegistered(ChainhookSpecification)
PredicateDeregistered(ChainhookSpecification)
PredicateEnabled(ChainhookSpecification)
BitcoinPredicateTriggered(BitcoinChainhookOccurrencePayload)
StacksPredicateTriggered(StacksChainhookOccurrencePayload)
HooksTriggered(usize)
Terminate
StacksChainMempoolEvent(StacksChainMempoolEvent)
Trait Implementations§
source§impl Clone for ObserverEvent
impl Clone for ObserverEvent
source§fn clone(&self) -> ObserverEvent
fn clone(&self) -> ObserverEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ObserverEvent
impl Send for ObserverEvent
impl Sync for ObserverEvent
impl Unpin for ObserverEvent
impl UnwindSafe for ObserverEvent
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.