Skip to main content

IndexPriceUpdatePublisher

Trait IndexPriceUpdatePublisher 

Source
pub trait IndexPriceUpdatePublisher: Send + Sync {
    // Required method
    fn publish_index_prices(&self, update: WsIndexPriceUpdate);
}
Expand description

Publishes a fully materialized index-price websocket update.

Called inline from the runtime debounce loop, so implementations should stay cheap and non-blocking. The call is fire-and-forget from the task’s point of view, and implementors must be shareable across runtime tasks.

Required Methods§

Implementations on Foreign Types§

Source§

impl IndexPriceUpdatePublisher for PubSubManager

Implementors§