pub enum BybitWsFrame {
Show 16 variants
Auth(BybitWsAuthResponse),
Subscription(BybitWsSubscriptionMsg),
OrderResponse(BybitWsOrderResponse),
ErrorResponse(BybitWsResponse),
Orderbook(BybitWsOrderbookDepthMsg),
Trade(BybitWsTradeMsg),
Kline(BybitWsKlineMsg),
TickerLinear(BybitWsTickerLinearMsg),
TickerOption(BybitWsTickerOptionMsg),
AccountOrder(BybitWsAccountOrderMsg),
AccountExecution(BybitWsAccountExecutionMsg),
AccountExecutionFast(BybitWsAccountExecutionFastMsg),
AccountWallet(BybitWsAccountWalletMsg),
AccountPosition(BybitWsAccountPositionMsg),
Unknown(Value),
Reconnected,
}Expand description
Wire-level frame deserialized from a Bybit WebSocket message.
Represents the raw protocol layer before the handler converts data
variants into the public BybitWsMessage API.
Variants§
Auth(BybitWsAuthResponse)
Authentication acknowledgement.
Subscription(BybitWsSubscriptionMsg)
Subscription acknowledgement.
OrderResponse(BybitWsOrderResponse)
Order operation response (create/amend/cancel) from trade WebSocket.
ErrorResponse(BybitWsResponse)
Error response from the venue.
Orderbook(BybitWsOrderbookDepthMsg)
Orderbook snapshot or delta.
Trade(BybitWsTradeMsg)
Trade updates.
Kline(BybitWsKlineMsg)
Kline updates.
TickerLinear(BybitWsTickerLinearMsg)
Linear/inverse ticker update.
TickerOption(BybitWsTickerOptionMsg)
Option ticker update.
AccountOrder(BybitWsAccountOrderMsg)
Order updates from private channel.
AccountExecution(BybitWsAccountExecutionMsg)
Execution/fill updates from private channel.
AccountExecutionFast(BybitWsAccountExecutionFastMsg)
Fast execution updates from private channel (slim payload).
AccountWallet(BybitWsAccountWalletMsg)
Wallet/balance updates from private channel.
AccountPosition(BybitWsAccountPositionMsg)
Position updates from private channel.
Unknown(Value)
Payload that does not match any known frame type.
Reconnected
Notification that the underlying connection reconnected.
Trait Implementations§
Source§impl Clone for BybitWsFrame
impl Clone for BybitWsFrame
Source§fn clone(&self) -> BybitWsFrame
fn clone(&self) -> BybitWsFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BybitWsFrame
impl RefUnwindSafe for BybitWsFrame
impl Send for BybitWsFrame
impl Sync for BybitWsFrame
impl Unpin for BybitWsFrame
impl UnsafeUnpin for BybitWsFrame
impl UnwindSafe for BybitWsFrame
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
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> 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>
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>
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