pub enum BusPayloadType {
Show 20 variants
Custom(Ustr),
Instrument,
OrderBookDeltas,
OrderBookDepth10,
QuoteTick,
TradeTick,
Bar,
MarkPriceUpdate,
IndexPriceUpdate,
FundingRateUpdate,
OptionGreeks,
AccountState,
OrderEvent,
PositionEvent,
PortfolioSnapshot,
Block,
Pool,
PoolLiquidityUpdate,
PoolFeeCollect,
PoolFlash,
}Expand description
The payload type carried by a BusMessage.
The fixed variants cover every type the bus publishes externally; BusPayloadType::Custom
carries the user-defined type name for arbitrary custom data. Serializes as its flat name
string (e.g. "QuoteTick"), matching the wire type field.
Variants§
Custom(Ustr)
User-defined custom data, identified by its type name.
Instrument
OrderBookDeltas
OrderBookDepth10
QuoteTick
TradeTick
Bar
MarkPriceUpdate
IndexPriceUpdate
FundingRateUpdate
OptionGreeks
AccountState
OrderEvent
PositionEvent
PortfolioSnapshot
Block
Pool
PoolLiquidityUpdate
PoolFeeCollect
PoolFlash
Implementations§
Source§impl BusPayloadType
impl BusPayloadType
Sourcepub fn from_name(name: &str) -> Self
pub fn from_name(name: &str) -> Self
Resolves a canonical type name to a BusPayloadType.
Unknown names resolve to BusPayloadType::Custom.
Sourcepub fn category(&self) -> BusPayloadCategory
pub fn category(&self) -> BusPayloadCategory
Returns the encoding policy category for this payload type.
Sourcepub fn supports(&self, encoding: SerializationEncoding) -> bool
pub fn supports(&self, encoding: SerializationEncoding) -> bool
Returns whether this payload type supports the given bus serialization encoding.
Trait Implementations§
Source§impl Clone for BusPayloadType
impl Clone for BusPayloadType
Source§fn clone(&self) -> BusPayloadType
fn clone(&self) -> BusPayloadType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BusPayloadType
Source§impl Debug for BusPayloadType
impl Debug for BusPayloadType
Source§impl<'de> Deserialize<'de> for BusPayloadType
impl<'de> Deserialize<'de> for BusPayloadType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BusPayloadType
impl Display for BusPayloadType
impl Eq for BusPayloadType
Source§impl Hash for BusPayloadType
impl Hash for BusPayloadType
Source§impl PartialEq for BusPayloadType
impl PartialEq for BusPayloadType
Source§fn eq(&self, other: &BusPayloadType) -> bool
fn eq(&self, other: &BusPayloadType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BusPayloadType
impl Serialize for BusPayloadType
impl StructuralPartialEq for BusPayloadType
Auto Trait Implementations§
impl Freeze for BusPayloadType
impl RefUnwindSafe for BusPayloadType
impl Send for BusPayloadType
impl Sync for BusPayloadType
impl Unpin for BusPayloadType
impl UnsafeUnpin for BusPayloadType
impl UnwindSafe for BusPayloadType
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
Mutably borrows from an owned value. Read more
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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