pub enum PushEvent {
QuotePush {
sec_key: String,
sub_type: i32,
proto_id: u32,
body: Vec<u8>,
},
BroadcastPush {
proto_id: u32,
body: Vec<u8>,
},
TradeReQuery {
acc_id: u64,
notice_type: u32,
order_ids: Vec<String>,
order_fill_ids: Vec<String>,
},
}Expand description
推送事件 (从 push_callback 通过 channel 发送)
Variants§
QuotePush
行情推送 → 按订阅转发给客户端
BroadcastPush
广播推送 → 发送给所有已连接的客户端 (到价提醒等)
TradeReQuery
交易数据重查 (收到 _UPDATE 通知后触发)
Auto Trait Implementations§
impl Freeze for PushEvent
impl RefUnwindSafe for PushEvent
impl Send for PushEvent
impl Sync for PushEvent
impl Unpin for PushEvent
impl UnwindSafe for PushEvent
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