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

Implementors§

Source§

impl Identifier<Option<SubscriptionId>> for BinanceOrderBookL1

Source§

impl Identifier<Option<SubscriptionId>> for BinanceFuturesOrderBookL2Update

Source§

impl Identifier<Option<SubscriptionId>> for BinanceLiquidation

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 CoinbaseTrade

Source§

impl Identifier<Option<SubscriptionId>> for KrakenOrderBookL1Inner

Source§

impl Identifier<Option<SubscriptionId>> for KrakenTradesInner

Source§

impl Identifier<Option<SubscriptionId>> for BitmexTrade

Source§

impl Identifier<Option<SubscriptionId>> for GateioFuturesTrades

Source§

impl Identifier<Option<SubscriptionId>> for GateioSpotTrade

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> Identifier<BinanceChannel> for Subscription<BinanceFuturesUsd, Instrument, Liquidations>

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<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<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<KrakenMarket> for Subscription<Kraken, MarketDataInstrument, Kind>

Source§

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

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, 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 KrakenMessage<T>

Source§

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

Source§

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