pub enum BybitWsMessage {
Show 17 variants
Response(BybitWsResponse),
Auth(BybitWsAuthResponse),
Subscription(BybitWsSubscriptionMsg),
OrderResponse(BybitWsOrderResponse),
Orderbook(BybitWsOrderbookDepthMsg),
Trade(BybitWsTradeMsg),
Kline(BybitWsKlineMsg),
TickerLinear(BybitWsTickerLinearMsg),
TickerOption(BybitWsTickerOptionMsg),
AccountOrder(BybitWsAccountOrderMsg),
AccountExecution(BybitWsAccountExecutionMsg),
AccountWallet(BybitWsAccountWalletMsg),
AccountPosition(BybitWsAccountPositionMsg),
Error(BybitWebSocketError),
Raw(Value),
Reconnected,
Pong,
}Expand description
High level message emitted by the Bybit WebSocket client.
Variants§
Response(BybitWsResponse)
Generic response (subscribe/auth acknowledgement).
Auth(BybitWsAuthResponse)
Authentication acknowledgement.
Subscription(BybitWsSubscriptionMsg)
Subscription acknowledgement.
OrderResponse(BybitWsOrderResponse)
Order operation response (create/amend/cancel) from trade WebSocket.
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.
Error(BybitWebSocketError)
Error received from the venue or client lifecycle.
Raw(Value)
Raw message payload that does not yet have a typed representation.
Reconnected
Notification that the underlying connection reconnected.
Pong
Explicit pong event (text-based heartbeat acknowledgement).
Trait Implementations§
Source§impl Clone for BybitWsMessage
impl Clone for BybitWsMessage
Source§fn clone(&self) -> BybitWsMessage
fn clone(&self) -> BybitWsMessage
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 BybitWsMessage
impl RefUnwindSafe for BybitWsMessage
impl Send for BybitWsMessage
impl Sync for BybitWsMessage
impl Unpin for BybitWsMessage
impl UnwindSafe for BybitWsMessage
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