pub struct PublicTrades;Expand description
Barter Subscription SubscriptionKind that yields PublicTrade
MarketEvent<T> events.
Trait Implementations§
Source§impl Clone for PublicTrades
impl Clone for PublicTrades
Source§fn clone(&self) -> PublicTrades
fn clone(&self) -> PublicTrades
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicTrades
impl Debug for PublicTrades
Source§impl Default for PublicTrades
impl Default for PublicTrades
Source§fn default() -> PublicTrades
fn default() -> PublicTrades
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicTrades
impl<'de> Deserialize<'de> for PublicTrades
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PublicTrades
impl Display for PublicTrades
Source§impl Hash for PublicTrades
impl Hash for PublicTrades
Source§impl Ord for PublicTrades
impl Ord for PublicTrades
Source§fn cmp(&self, other: &PublicTrades) -> Ordering
fn cmp(&self, other: &PublicTrades) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PublicTrades
impl PartialEq for PublicTrades
Source§fn eq(&self, other: &PublicTrades) -> bool
fn eq(&self, other: &PublicTrades) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PublicTrades
impl PartialOrd for PublicTrades
Source§impl Serialize for PublicTrades
impl Serialize for PublicTrades
Source§impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Binance<Server>
impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Binance<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Binance<Server>, <Instrument as InstrumentData>::Key, PublicTrades, BinanceTrade>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitfinexwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitfinexwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Bitfinex, <Instrument as InstrumentData>::Key, PublicTrades, BitfinexMessage>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitmexwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for Bitmexwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Bitmex, <Instrument as InstrumentData>::Key, PublicTrades, BitmexMessage<BitmexTradeInner>>>
Source§impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Bybit<Server>
impl<Instrument, Server> StreamSelector<Instrument, PublicTrades> for Bybit<Server>
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Bybit<Server>, <Instrument as InstrumentData>::Key, PublicTrades, BybitPayload<Vec<BybitTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for Coinbasewhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for Coinbasewhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Coinbase, <Instrument as InstrumentData>::Key, PublicTrades, CoinbaseTrade>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesBtcwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesBtcwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Gateio<GateioServerFuturesBtc>, <Instrument as InstrumentData>::Key, PublicTrades, GateioMessage<Vec<GateioFuturesTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesUsdwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioFuturesUsdwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Gateio<GateioServerFuturesUsd>, <Instrument as InstrumentData>::Key, PublicTrades, GateioMessage<Vec<GateioFuturesTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioOptionswhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioOptionswhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Gateio<GateioServerOptions>, <Instrument as InstrumentData>::Key, PublicTrades, GateioMessage<Vec<GateioFuturesTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsBtcwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsBtcwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Gateio<GateioServerPerpetualsBtc>, <Instrument as InstrumentData>::Key, PublicTrades, GateioMessage<Vec<GateioFuturesTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsUsdwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioPerpetualsUsdwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Gateio<GateioServerPerpetualsUsd>, <Instrument as InstrumentData>::Key, PublicTrades, GateioMessage<Vec<GateioFuturesTradeInner>>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioSpotwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for GateioSpotwhere
Instrument: InstrumentData,
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for Krakenwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for Krakenwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Kraken, <Instrument as InstrumentData>::Key, PublicTrades, KrakenMessage<KrakenTradesInner>>>
Source§impl<Instrument> StreamSelector<Instrument, PublicTrades> for Okxwhere
Instrument: InstrumentData,
impl<Instrument> StreamSelector<Instrument, PublicTrades> for Okxwhere
Instrument: InstrumentData,
type SnapFetcher = NoInitialSnapshots
type Stream = ExchangeStream<WebSocketSerdeParser, SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>, StatelessTransformer<Okx, <Instrument as InstrumentData>::Key, PublicTrades, OkxMessage<OkxTrade>>>
Source§impl SubscriptionKind for PublicTrades
impl SubscriptionKind for PublicTrades
impl Copy for PublicTrades
impl Eq for PublicTrades
impl StructuralPartialEq for PublicTrades
Auto Trait Implementations§
impl Freeze for PublicTrades
impl RefUnwindSafe for PublicTrades
impl Send for PublicTrades
impl Sync for PublicTrades
impl Unpin for PublicTrades
impl UnsafeUnpin for PublicTrades
impl UnwindSafe for PublicTrades
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more