pub enum LighterWsChannel {
Show 14 variants
OrderBook(i16),
Ticker(i16),
MarketStats(LighterMarketSelection),
SpotMarketStats(LighterMarketSelection),
Trade(i16),
Candle {
market_index: i16,
resolution: LighterCandleResolution,
},
AccountAll(i64),
AccountOrders {
market_index: i16,
account_index: i64,
},
AccountAllOrders(i64),
AccountAllTrades(i64),
AccountAllPositions(i64),
AccountAllAssets(i64),
UserStats(i64),
Height,
}Variants§
OrderBook(i16)
Ticker(i16)
MarketStats(LighterMarketSelection)
SpotMarketStats(LighterMarketSelection)
Trade(i16)
Candle
AccountAll(i64)
AccountOrders
AccountAllOrders(i64)
AccountAllTrades(i64)
AccountAllPositions(i64)
AccountAllAssets(i64)
UserStats(i64)
Height
Implementations§
Source§impl LighterWsChannel
impl LighterWsChannel
Sourcepub const fn kind(&self) -> LighterWsChannelKind
pub const fn kind(&self) -> LighterWsChannelKind
Returns the kind of this channel.
pub fn subscription_channel(&self) -> String
Sourcepub fn topic_key(&self) -> String
pub fn topic_key(&self) -> String
Returns the canonical topic key used to track this subscription.
Lighter inbound frames carry a channel field formatted with :
(e.g. order_book:0) while outbound subscribe payloads use /
(e.g. order_book/0). The topic key matches the inbound form so the
handler can correlate frame channel fields against the tracked
subscription set.
Sourcepub const fn requires_auth(&self) -> bool
pub const fn requires_auth(&self) -> bool
Returns true when subscribing to this channel requires an auth token.
Trait Implementations§
Source§impl Clone for LighterWsChannel
impl Clone for LighterWsChannel
Source§fn clone(&self) -> LighterWsChannel
fn clone(&self) -> LighterWsChannel
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 LighterWsChannel
impl Debug for LighterWsChannel
impl Eq for LighterWsChannel
Source§impl PartialEq for LighterWsChannel
impl PartialEq for LighterWsChannel
Source§fn eq(&self, other: &LighterWsChannel) -> bool
fn eq(&self, other: &LighterWsChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LighterWsChannel
Auto Trait Implementations§
impl Freeze for LighterWsChannel
impl RefUnwindSafe for LighterWsChannel
impl Send for LighterWsChannel
impl Sync for LighterWsChannel
impl Unpin for LighterWsChannel
impl UnsafeUnpin for LighterWsChannel
impl UnwindSafe for LighterWsChannel
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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