pub enum BybitWsFrame {
Show 15 variants
Auth(BybitWsAuthResponse),
Subscription(BybitWsSubscriptionMsg),
OrderResponse(BybitWsOrderResponse),
ErrorResponse(BybitWsResponse),
Orderbook(BybitWsOrderbookDepthMsg),
Trade(BybitWsTradeMsg),
Kline(BybitWsKlineMsg),
TickerLinear(BybitWsTickerLinearMsg),
TickerOption(BybitWsTickerOptionMsg),
AccountOrder(BybitWsAccountOrderMsg),
AccountExecution(BybitWsAccountExecutionMsg),
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.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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§
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,
§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