pub enum BybitMessageType {
SubscriptionSuccess,
SubscriptionFailure,
UnsubscribeSuccess,
Trade,
OrderBook,
Ping,
Pong,
Error,
Unknown,
}Expand description
Bybit WebSocket message types
Variants§
SubscriptionSuccess
WebSocket subscription was successful
SubscriptionFailure
WebSocket subscription failed
UnsubscribeSuccess
WebSocket unsubscribe was successful
Trade
Trade data message
OrderBook
Order book data message
Ping
Ping message from server
Pong
Pong response message
Error
Error message from server
Unknown
Unknown message type
Trait Implementations§
Source§impl Clone for BybitMessageType
impl Clone for BybitMessageType
Source§fn clone(&self) -> BybitMessageType
fn clone(&self) -> BybitMessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BybitMessageType
impl Debug for BybitMessageType
Source§impl From<&str> for BybitMessageType
impl From<&str> for BybitMessageType
Source§impl PartialEq for BybitMessageType
impl PartialEq for BybitMessageType
impl Copy for BybitMessageType
impl Eq for BybitMessageType
impl StructuralPartialEq for BybitMessageType
Auto Trait Implementations§
impl Freeze for BybitMessageType
impl RefUnwindSafe for BybitMessageType
impl Send for BybitMessageType
impl Sync for BybitMessageType
impl Unpin for BybitMessageType
impl UnwindSafe for BybitMessageType
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<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