pub struct MarketDataChannels {
pub orderbook_tx: Sender<OrderBook>,
pub trade_tx: Sender<MarketTrade>,
}Expand description
Channels for distributing parsed market data
Fields§
§orderbook_tx: Sender<OrderBook>Channel for order book updates
trade_tx: Sender<MarketTrade>Channel for trade messages
Implementations§
Source§impl MarketDataChannels
impl MarketDataChannels
Sourcepub fn new(capacity: usize) -> (Self, MarketDataReceivers)
pub fn new(capacity: usize) -> (Self, MarketDataReceivers)
Create new market data channels with specified capacity
Auto Trait Implementations§
impl Freeze for MarketDataChannels
impl RefUnwindSafe for MarketDataChannels
impl Send for MarketDataChannels
impl Sync for MarketDataChannels
impl Unpin for MarketDataChannels
impl UnwindSafe for MarketDataChannels
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