pub enum BitfinexPlatformEvent {
PlatformStatus(BitfinexPlatformStatus),
Subscribed(BitfinexSubResponse),
Error(BitfinexError),
}Expand description
Bitfinex platform event detailing the variants expected to be received
while connecting and subscribing.
Raw Payload Examples
See docs: https://docs.bitfinex.com/docs/ws-general
Platform Status Online
{
"event": "info",
"version": VERSION,
"platform": {
"status": 1
}
}
Subscription Trades Success
{
event: "subscribed",
channel: "trades",
chanId: CHANNEL_ID,
symbol: "tBTCUSD"
pair: "BTCUSD"
}
Subscription Failure
{
"event": "error",
"msg": ERROR_MSG,
"code": ERROR_CODE
}Variants§
Trait Implementations§
source§impl Clone for BitfinexPlatformEvent
impl Clone for BitfinexPlatformEvent
source§fn clone(&self) -> BitfinexPlatformEvent
fn clone(&self) -> BitfinexPlatformEvent
Returns a copy 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 moresource§impl Debug for BitfinexPlatformEvent
impl Debug for BitfinexPlatformEvent
source§impl<'de> Deserialize<'de> for BitfinexPlatformEvent
impl<'de> Deserialize<'de> for BitfinexPlatformEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for BitfinexPlatformEvent
impl Hash for BitfinexPlatformEvent
source§impl Ord for BitfinexPlatformEvent
impl Ord for BitfinexPlatformEvent
source§fn cmp(&self, other: &BitfinexPlatformEvent) -> Ordering
fn cmp(&self, other: &BitfinexPlatformEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BitfinexPlatformEvent> for BitfinexPlatformEvent
impl PartialEq<BitfinexPlatformEvent> for BitfinexPlatformEvent
source§fn eq(&self, other: &BitfinexPlatformEvent) -> bool
fn eq(&self, other: &BitfinexPlatformEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<BitfinexPlatformEvent> for BitfinexPlatformEvent
impl PartialOrd<BitfinexPlatformEvent> for BitfinexPlatformEvent
source§fn partial_cmp(&self, other: &BitfinexPlatformEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &BitfinexPlatformEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for BitfinexPlatformEvent
impl Serialize for BitfinexPlatformEvent
source§impl Validator for BitfinexPlatformEvent
impl Validator for BitfinexPlatformEvent
impl Eq for BitfinexPlatformEvent
impl StructuralEq for BitfinexPlatformEvent
impl StructuralPartialEq for BitfinexPlatformEvent
Auto Trait Implementations§
impl RefUnwindSafe for BitfinexPlatformEvent
impl Send for BitfinexPlatformEvent
impl Sync for BitfinexPlatformEvent
impl Unpin for BitfinexPlatformEvent
impl UnwindSafe for BitfinexPlatformEvent
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.