Struct barter_data::event::MarketIter
source · pub struct MarketIter<T>(pub Vec<Result<MarketEvent<T>, DataError>>);Expand description
Convenient new type containing a collection of MarketEvent<T>s.
Tuple Fields§
§0: Vec<Result<MarketEvent<T>, DataError>>Trait Implementations§
source§impl<T: Debug> Debug for MarketIter<T>
impl<T: Debug> Debug for MarketIter<T>
source§impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
source§fn from(
(exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation)
) -> Self
fn from( (exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage)
) -> Self
fn from( (exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitmexMessage<BitmexTradeInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitmexMessage<BitmexTradeInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, BitmexTrade)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, BitmexTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BybitMessage)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BybitMessage)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, BybitMessage)
) -> Self
fn from( (exchange_id, instrument, message): (ExchangeId, Instrument, BybitMessage) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BybitPayload<Vec<BybitTradeInner>>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BybitPayload<Vec<BybitTradeInner>>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, BybitTrade)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, BybitTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner>>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner>>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenMessage<KrakenOrderBookL1Inner>)> for MarketIter<OrderBookL1>
impl From<(ExchangeId, Instrument, KrakenMessage<KrakenOrderBookL1Inner>)> for MarketIter<OrderBookL1>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, KrakenOrderBookL1)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, KrakenOrderBookL1) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenMessage<KrakenTradesInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, KrakenMessage<KrakenTradesInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook) ) -> Self
Converts to this type from the input type.
source§impl<T> FromIterator<Result<MarketEvent<T>, DataError>> for MarketIter<T>
impl<T> FromIterator<Result<MarketEvent<T>, DataError>> for MarketIter<T>
Auto Trait Implementations§
impl<T> Freeze for MarketIter<T>
impl<T> !RefUnwindSafe for MarketIter<T>
impl<T> Send for MarketIter<T>where
T: Send,
impl<T> Sync for MarketIter<T>where
T: Sync,
impl<T> Unpin for MarketIter<T>where
T: Unpin,
impl<T> !UnwindSafe for MarketIter<T>
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