pub struct GateioChannel(pub &'static str);Expand description
Type that defines how to translate a Barter Subscription into a
Gateio channel to be subscribed to.
See docs: https://www.okx.com/docs-v5/en/#websocket-api-public-channel
Tuple Fields§
§0: &'static strImplementations§
Source§impl GateioChannel
impl GateioChannel
Sourcepub const SPOT_TRADES: Self
pub const SPOT_TRADES: Self
Gateio MarketDataInstrumentKind::Spot real-time trades channel.
See docs: https://www.gate.io/docs/developers/apiv4/ws/en/#public-trades-channel
Sourcepub const FUTURE_TRADES: Self
pub const FUTURE_TRADES: Self
Gateio MarketDataInstrumentKind::Future & MarketDataInstrumentKind::Perpetual real-time trades channel.
See docs: https://www.gate.io/docs/developers/futures/ws/en/#trades-subscription See docs: https://www.gate.io/docs/developers/delivery/ws/en/#trades-subscription
Sourcepub const OPTION_TRADES: Self
pub const OPTION_TRADES: Self
Gateio MarketDataInstrumentKind::Option real-time trades channel.
See docs: https://www.gate.io/docs/developers/options/ws/en/#public-contract-trades-channel
Trait Implementations§
Source§impl AsRef<str> for GateioChannel
impl AsRef<str> for GateioChannel
Source§impl Clone for GateioChannel
impl Clone for GateioChannel
Source§fn clone(&self) -> GateioChannel
fn clone(&self) -> GateioChannel
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 GateioChannel
impl Debug for GateioChannel
Source§impl Hash for GateioChannel
impl Hash for GateioChannel
Source§impl<GateioExchange, Instrument> Identifier<GateioChannel> for Subscription<GateioExchange, Instrument, PublicTrades>where
Instrument: InstrumentData,
impl<GateioExchange, Instrument> Identifier<GateioChannel> for Subscription<GateioExchange, Instrument, PublicTrades>where
Instrument: InstrumentData,
fn id(&self) -> GateioChannel
Source§impl Ord for GateioChannel
impl Ord for GateioChannel
Source§fn cmp(&self, other: &GateioChannel) -> Ordering
fn cmp(&self, other: &GateioChannel) -> 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 GateioChannel
impl PartialEq for GateioChannel
Source§fn eq(&self, other: &GateioChannel) -> bool
fn eq(&self, other: &GateioChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GateioChannel
impl PartialOrd for GateioChannel
Source§impl Serialize for GateioChannel
impl Serialize for GateioChannel
impl Copy for GateioChannel
impl Eq for GateioChannel
impl StructuralPartialEq for GateioChannel
Auto Trait Implementations§
impl Freeze for GateioChannel
impl RefUnwindSafe for GateioChannel
impl Send for GateioChannel
impl Sync for GateioChannel
impl Unpin for GateioChannel
impl UnsafeUnpin for GateioChannel
impl UnwindSafe for GateioChannel
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