Enum ProviderStreamUpdate
pub enum ProviderStreamUpdate {
Transaction(TransactionEvent),
SerializedTransaction(SerializedTransactionEvent),
TransactionLog(TransactionLogEvent),
TransactionViewBatch(TransactionViewBatchEvent),
RecentBlockhash(ObservedRecentBlockhashEvent),
SlotStatus(SlotStatusEvent),
ClusterTopology(ClusterTopologyEvent),
LeaderSchedule(LeaderScheduleEvent),
Reorg(ReorgEvent),
Health(ProviderSourceHealthEvent),
}Expand description
One processed provider-stream update accepted by SOF.
Variants§
Transaction(TransactionEvent)
One provider transaction mapped onto SOF’s transaction hook surface.
SerializedTransaction(SerializedTransactionEvent)
One serialized provider transaction that can still be filtered before full decode.
TransactionLog(TransactionLogEvent)
One provider/websocket transaction-log notification.
TransactionViewBatch(TransactionViewBatchEvent)
One provider transaction-view batch mapped onto SOF’s view-batch surface.
RecentBlockhash(ObservedRecentBlockhashEvent)
One provider recent-blockhash observation.
SlotStatus(SlotStatusEvent)
One provider slot-status update.
ClusterTopology(ClusterTopologyEvent)
One provider cluster-topology update.
LeaderSchedule(LeaderScheduleEvent)
One provider leader-schedule update.
Reorg(ReorgEvent)
One provider reorg/fork update.
Health(ProviderSourceHealthEvent)
One provider source health transition observed by a built-in or generic source.
Trait Implementations§
§impl Clone for ProviderStreamUpdate
impl Clone for ProviderStreamUpdate
§fn clone(&self) -> ProviderStreamUpdate
fn clone(&self) -> ProviderStreamUpdate
Returns a duplicate 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 more§impl Debug for ProviderStreamUpdate
impl Debug for ProviderStreamUpdate
§impl From<ClusterTopologyEvent> for ProviderStreamUpdate
impl From<ClusterTopologyEvent> for ProviderStreamUpdate
§fn from(event: ClusterTopologyEvent) -> Self
fn from(event: ClusterTopologyEvent) -> Self
Converts to this type from the input type.
§impl From<LeaderScheduleEvent> for ProviderStreamUpdate
impl From<LeaderScheduleEvent> for ProviderStreamUpdate
§fn from(event: LeaderScheduleEvent) -> Self
fn from(event: LeaderScheduleEvent) -> Self
Converts to this type from the input type.
§impl From<ObservedRecentBlockhashEvent> for ProviderStreamUpdate
impl From<ObservedRecentBlockhashEvent> for ProviderStreamUpdate
§fn from(event: ObservedRecentBlockhashEvent) -> Self
fn from(event: ObservedRecentBlockhashEvent) -> Self
Converts to this type from the input type.
§impl From<ProviderSourceHealthEvent> for ProviderStreamUpdate
impl From<ProviderSourceHealthEvent> for ProviderStreamUpdate
§fn from(event: ProviderSourceHealthEvent) -> Self
fn from(event: ProviderSourceHealthEvent) -> Self
Converts to this type from the input type.
§impl From<ReorgEvent> for ProviderStreamUpdate
impl From<ReorgEvent> for ProviderStreamUpdate
§fn from(event: ReorgEvent) -> Self
fn from(event: ReorgEvent) -> Self
Converts to this type from the input type.
§impl From<SerializedTransactionEvent> for ProviderStreamUpdate
impl From<SerializedTransactionEvent> for ProviderStreamUpdate
§fn from(event: SerializedTransactionEvent) -> Self
fn from(event: SerializedTransactionEvent) -> Self
Converts to this type from the input type.
§impl From<SlotStatusEvent> for ProviderStreamUpdate
impl From<SlotStatusEvent> for ProviderStreamUpdate
§fn from(event: SlotStatusEvent) -> Self
fn from(event: SlotStatusEvent) -> Self
Converts to this type from the input type.
§impl From<TransactionEvent> for ProviderStreamUpdate
impl From<TransactionEvent> for ProviderStreamUpdate
§fn from(event: TransactionEvent) -> Self
fn from(event: TransactionEvent) -> Self
Converts to this type from the input type.
§impl From<TransactionLogEvent> for ProviderStreamUpdate
impl From<TransactionLogEvent> for ProviderStreamUpdate
§fn from(event: TransactionLogEvent) -> Self
fn from(event: TransactionLogEvent) -> Self
Converts to this type from the input type.
§impl From<TransactionViewBatchEvent> for ProviderStreamUpdate
impl From<TransactionViewBatchEvent> for ProviderStreamUpdate
§fn from(event: TransactionViewBatchEvent) -> Self
fn from(event: TransactionViewBatchEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProviderStreamUpdate
impl RefUnwindSafe for ProviderStreamUpdate
impl Send for ProviderStreamUpdate
impl Sync for ProviderStreamUpdate
impl Unpin for ProviderStreamUpdate
impl UnsafeUnpin for ProviderStreamUpdate
impl UnwindSafe for ProviderStreamUpdate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more