#[non_exhaustive]pub enum SubscriptionChannel {
OrderSnapshot,
OrderUpdate,
MarketData,
MarketDataLite,
PositionSnapshot,
PositionUpdate,
BalanceSnapshot,
BalanceUpdate,
Trade,
Heartbeat,
}Expand description
All known WebSocket subscription channels.
Pass a variant to the typed constructors on StreamSubscription, or use
SubscriptionChannel::as_str to get the wire-format channel name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OrderSnapshot
Initial snapshot of all open orders (private).
OrderUpdate
Real-time order lifecycle changes (private).
MarketData
Full order-book depth (public).
MarketDataLite
Best-bid/offer only (public).
PositionSnapshot
Initial snapshot of portfolio positions (private).
PositionUpdate
Real-time position changes (private).
BalanceSnapshot
Initial snapshot of account balances (private).
BalanceUpdate
Real-time balance changes (private).
Trade
Trade execution feed (public).
Heartbeat
Server heartbeat — useful as an aliveness check.
Implementations§
Trait Implementations§
Source§impl Clone for SubscriptionChannel
impl Clone for SubscriptionChannel
Source§fn clone(&self) -> SubscriptionChannel
fn clone(&self) -> SubscriptionChannel
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 moreimpl Copy for SubscriptionChannel
Source§impl Debug for SubscriptionChannel
impl Debug for SubscriptionChannel
Source§impl<'de> Deserialize<'de> for SubscriptionChannel
impl<'de> Deserialize<'de> for SubscriptionChannel
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 SubscriptionChannel
impl Display for SubscriptionChannel
impl Eq for SubscriptionChannel
Source§impl Hash for SubscriptionChannel
impl Hash for SubscriptionChannel
Source§impl PartialEq for SubscriptionChannel
impl PartialEq for SubscriptionChannel
Source§fn eq(&self, other: &SubscriptionChannel) -> bool
fn eq(&self, other: &SubscriptionChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubscriptionChannel
impl Serialize for SubscriptionChannel
impl StructuralPartialEq for SubscriptionChannel
Auto Trait Implementations§
impl Freeze for SubscriptionChannel
impl RefUnwindSafe for SubscriptionChannel
impl Send for SubscriptionChannel
impl Sync for SubscriptionChannel
impl Unpin for SubscriptionChannel
impl UnsafeUnpin for SubscriptionChannel
impl UnwindSafe for SubscriptionChannel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.