pub enum PlatformExecutionEvent {
ExecutionsSnapshot {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
server_time_ms: u64,
executions: Vec<PlatformExecutionRow>,
unknown_execution_ids: Vec<String>,
},
ExecutionUpdate {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
execution: PlatformExecutionRow,
},
ExecutionExpired {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
execution_id: String,
},
ExecutionUnknown {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
execution_id: String,
},
Heartbeat {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
},
}Expand description
Sequenced execution stream (execution.stream) for one market. The client
opens the socket and sends a watch frame; the server answers with one
executions_snapshot for the watched handles, then execution_update
whenever a watched execution is prepared, confirmed on chain, or expires
unconfirmed, execution_unknown for handles this market never issued or
no longer remembers, and heartbeats. Later watch frames add handles and
produce update/unknown events for them.
Variants§
ExecutionsSnapshot
Fields
§
executions: Vec<PlatformExecutionRow>ExecutionUpdate
Fields
§
execution: PlatformExecutionRowExecutionExpired
Fields
ExecutionUnknown
Fields
Heartbeat
Trait Implementations§
Source§impl Clone for PlatformExecutionEvent
impl Clone for PlatformExecutionEvent
Source§fn clone(&self) -> PlatformExecutionEvent
fn clone(&self) -> PlatformExecutionEvent
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 moreSource§impl Debug for PlatformExecutionEvent
impl Debug for PlatformExecutionEvent
Source§impl<'de> Deserialize<'de> for PlatformExecutionEvent
impl<'de> Deserialize<'de> for PlatformExecutionEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformExecutionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformExecutionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformExecutionEvent
Source§impl PartialEq for PlatformExecutionEvent
impl PartialEq for PlatformExecutionEvent
Source§impl Serialize for PlatformExecutionEvent
impl Serialize for PlatformExecutionEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformExecutionEvent
Auto Trait Implementations§
impl Freeze for PlatformExecutionEvent
impl RefUnwindSafe for PlatformExecutionEvent
impl Send for PlatformExecutionEvent
impl Sync for PlatformExecutionEvent
impl Unpin for PlatformExecutionEvent
impl UnsafeUnpin for PlatformExecutionEvent
impl UnwindSafe for PlatformExecutionEvent
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