Skip to main content

Identifier

Trait Identifier 

Source
pub trait Identifier<T> {
    // Required method
    fn id(&self) -> T;
}
Expand description

Defines a generic identification type for the implementor.

Required Methods§

Source

fn id(&self) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Identifier<Option<SubscriptionId>> for BinanceContinuousKline

Source§

impl Identifier<Option<SubscriptionId>> for BinanceFuturesOrderBookL2Update

Source§

impl Identifier<Option<SubscriptionId>> for BinanceKline

Source§

impl Identifier<Option<SubscriptionId>> for BinanceLiquidation

Source§

impl Identifier<Option<SubscriptionId>> for BinanceOrderBookL1

Source§

impl Identifier<Option<SubscriptionId>> for BinanceSpotOrderBookL2Update

Source§

impl Identifier<Option<SubscriptionId>> for BinanceTrade

Source§

impl Identifier<Option<SubscriptionId>> for BitfinexMessage

Source§

impl Identifier<Option<SubscriptionId>> for BitmexTrade

Source§

impl Identifier<Option<SubscriptionId>> for CoinbaseTrade

Source§

impl Identifier<Option<SubscriptionId>> for GateioFuturesTrades

Source§

impl Identifier<Option<SubscriptionId>> for GateioSpotTrade

Source§

impl Identifier<Option<SubscriptionId>> for HyperliquidL2Book

Source§

impl Identifier<Option<SubscriptionId>> for HyperliquidTrade

Source§

impl Identifier<Option<SubscriptionId>> for KrakenOrderBookL1Inner

Source§

impl Identifier<Option<SubscriptionId>> for KrakenTradesInner

Source§

impl Identifier<Option<SubscriptionId>> for LseMessage

Source§

impl<Channel, Market> Identifier<SubscriptionId> for ExchangeSub<Channel, Market>
where Channel: AsRef<str>, Market: AsRef<str>,

Source§

impl<GateioExchange, Instrument> Identifier<GateioChannel> for Subscription<GateioExchange, Instrument, PublicTrades>
where Instrument: InstrumentData,

Source§

impl<Instrument, Kind> Identifier<HyperliquidMarket> for Subscription<Hyperliquid, Instrument, Kind>
where Instrument: HyperliquidInstrument,

Source§

impl<Instrument> Identifier<BinanceChannel> for Subscription<BinanceFuturesUsdMarket, Instrument, Candles>

Source§

impl<Instrument> Identifier<BinanceChannel> for Subscription<BinanceFuturesUsdMarket, Instrument, Liquidations>

Source§

impl<Instrument> Identifier<BinanceChannel> for Subscription<BinanceSpot, Instrument, Candles>

Source§

impl<Instrument> Identifier<BitfinexChannel> for Subscription<Bitfinex, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<BitmexChannel> for Subscription<Bitmex, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<CoinbaseChannel> for Subscription<Coinbase, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<HyperliquidChannel> for Subscription<Hyperliquid, Instrument, OrderBooksL2>

Source§

impl<Instrument> Identifier<HyperliquidChannel> for Subscription<Hyperliquid, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<HyperliquidChannel> for Subscription<HyperliquidSpot, Instrument, OrderBooksL2>

Source§

impl<Instrument> Identifier<HyperliquidChannel> for Subscription<HyperliquidSpot, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<KrakenChannel> for Subscription<Kraken, Instrument, OrderBooksL1>

Source§

impl<Instrument> Identifier<KrakenChannel> for Subscription<Kraken, Instrument, PublicTrades>

Source§

impl<Instrument> Identifier<OkxChannel> for Subscription<Okx, Instrument, PublicTrades>

Source§

impl<InstrumentKey, Kind> Identifier<BitfinexMarket> for Subscription<Bitfinex, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<BitfinexMarket> for Subscription<Bitfinex, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<BitmexMarket> for Subscription<Bitmex, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<BitmexMarket> for Subscription<Bitmex, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<CoinbaseMarket> for Subscription<Coinbase, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<CoinbaseMarket> for Subscription<Coinbase, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<HyperliquidMarket> for Subscription<HyperliquidSpot, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<HyperliquidMarket> for Subscription<HyperliquidSpot, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<KrakenMarket> for Subscription<Kraken, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<KrakenMarket> for Subscription<Kraken, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<OkxMarket> for Subscription<Okx, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<InstrumentKey, Kind> Identifier<OkxMarket> for Subscription<Okx, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<Kind> Identifier<BitfinexMarket> for Subscription<Bitfinex, MarketDataInstrument, Kind>

Source§

impl<Kind> Identifier<BitmexMarket> for Subscription<Bitmex, MarketDataInstrument, Kind>

Source§

impl<Kind> Identifier<CoinbaseMarket> for Subscription<Coinbase, MarketDataInstrument, Kind>

Source§

impl<Kind> Identifier<HyperliquidMarket> for Subscription<HyperliquidSpot, MarketDataInstrument, Kind>

Source§

impl<Kind> Identifier<KrakenMarket> for Subscription<Kraken, MarketDataInstrument, Kind>

Source§

impl<Kind> Identifier<OkxMarket> for Subscription<Okx, MarketDataInstrument, Kind>

Source§

impl<Server, Instrument, Kind> Identifier<AlpacaMarket> for Subscription<Alpaca<Server>, Instrument, Kind>
where Server: AlpacaServer, Instrument: AlpacaInstrument,

Source§

impl<Server, Instrument, Kind> Identifier<LseMarket> for Subscription<Lse<Server>, Instrument, Kind>
where Server: LseServer, Instrument: LseInstrument,

Source§

impl<Server, Instrument, Kind> Identifier<MassiveMarket> for Subscription<Massive<Server>, Instrument, Kind>
where Server: MassiveServer, Instrument: MassiveInstrument,

Source§

impl<Server, Instrument> Identifier<AlpacaChannel> for Subscription<Alpaca<Server>, Instrument, OrderBooksL1>

Alpaca’s top of book is its quote, so an L1 stream reads the quotes channel. It shares the (channel, symbol) pair with any Quotes stream on the same symbol and feed.

Source§

impl<Server, Instrument> Identifier<AlpacaChannel> for Subscription<Alpaca<Server>, Instrument, PublicTrades>

Source§

impl<Server, Instrument> Identifier<AlpacaChannel> for Subscription<Alpaca<Server>, Instrument, Quotes>

Source§

impl<Server, Instrument> Identifier<BinanceChannel> for Subscription<Binance<Server>, Instrument, OrderBooksL1>

Source§

impl<Server, Instrument> Identifier<BinanceChannel> for Subscription<Binance<Server>, Instrument, OrderBooksL2>

Source§

impl<Server, Instrument> Identifier<BinanceChannel> for Subscription<Binance<Server>, Instrument, PublicTrades>

Source§

impl<Server, Instrument> Identifier<BybitChannel> for Subscription<Bybit<Server>, Instrument, OrderBooksL1>

Source§

impl<Server, Instrument> Identifier<BybitChannel> for Subscription<Bybit<Server>, Instrument, OrderBooksL2>

Source§

impl<Server, Instrument> Identifier<BybitChannel> for Subscription<Bybit<Server>, Instrument, PublicTrades>

Source§

impl<Server, Instrument> Identifier<LseChannel> for Subscription<Lse<Server>, Instrument, OrderBooksL1>

Source§

impl<Server, Instrument> Identifier<LseChannel> for Subscription<Lse<Server>, Instrument, PublicTrades>

Source§

impl<Server, Instrument> Identifier<MassiveChannel> for Subscription<Massive<Server>, Instrument, Candles>
where Server: MassiveServer,

Source§

impl<Server, Instrument> Identifier<MassiveChannel> for Subscription<Massive<Server>, Instrument, OrderBooksL1>
where Server: MassiveServer,

The quote channel, read as a top of book.

Source§

impl<Server, Instrument> Identifier<MassiveChannel> for Subscription<Massive<Server>, Instrument, PublicTrades>
where Server: MassiveTradeServer,

Source§

impl<Server, Instrument> Identifier<MassiveChannel> for Subscription<Massive<Server>, Instrument, Quotes>
where Server: MassiveServer,

Source§

impl<Server, InstrumentKey, Kind> Identifier<BinanceMarket> for Subscription<Binance<Server>, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<Server, InstrumentKey, Kind> Identifier<BinanceMarket> for Subscription<Binance<Server>, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<Server, InstrumentKey, Kind> Identifier<BybitMarket> for Subscription<Bybit<Server>, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<Server, InstrumentKey, Kind> Identifier<BybitMarket> for Subscription<Bybit<Server>, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<Server, InstrumentKey, Kind> Identifier<GateioMarket> for Subscription<Gateio<Server>, Keyed<InstrumentKey, MarketDataInstrument>, Kind>

Source§

impl<Server, InstrumentKey, Kind> Identifier<GateioMarket> for Subscription<Gateio<Server>, MarketInstrumentData<InstrumentKey>, Kind>

Source§

impl<Server, Kind> Identifier<BinanceMarket> for Subscription<Binance<Server>, MarketDataInstrument, Kind>

Source§

impl<Server, Kind> Identifier<BybitMarket> for Subscription<Bybit<Server>, MarketDataInstrument, Kind>

Source§

impl<Server, Kind> Identifier<GateioMarket> for Subscription<Gateio<Server>, MarketDataInstrument, Kind>

Source§

impl<T> Identifier<Option<SubscriptionId>> for BybitPayload<T>

Source§

impl<T> Identifier<Option<SubscriptionId>> for KrakenMessage<T>

Source§

impl<T> Identifier<Option<SubscriptionId>> for OkxMessage<T>