pub enum AsyncMdEvent {
Connected,
Disconnected(i32),
HeartBeatWarning(i32),
LoginResponse {
user_login: Option<RspUserLoginField>,
rsp_info: Option<RspInfoField>,
request_id: i32,
is_last: bool,
},
LogoutResponse {
rsp_info: Option<RspInfoField>,
request_id: i32,
is_last: bool,
},
ErrorResponse {
rsp_info: Option<RspInfoField>,
request_id: i32,
is_last: bool,
},
SubMarketDataResponse {
specific_instrument: Option<SpecificInstrumentField>,
rsp_info: Option<RspInfoField>,
request_id: i32,
is_last: bool,
},
UnsubMarketDataResponse {
specific_instrument: Option<SpecificInstrumentField>,
rsp_info: Option<RspInfoField>,
request_id: i32,
is_last: bool,
},
DepthMarketData(DepthMarketDataField),
ForQuoteResponse(ForQuoteRspField),
}
Expand description
异步事件类型
Variants§
Connected
连接成功
Disconnected(i32)
连接断开
HeartBeatWarning(i32)
心跳超时警告
LoginResponse
登录响应
LogoutResponse
登出响应
ErrorResponse
错误响应
SubMarketDataResponse
订阅行情响应
UnsubMarketDataResponse
取消订阅行情响应
DepthMarketData(DepthMarketDataField)
深度行情数据
ForQuoteResponse(ForQuoteRspField)
询价响应
Trait Implementations§
Source§impl Clone for AsyncMdEvent
impl Clone for AsyncMdEvent
Source§fn clone(&self) -> AsyncMdEvent
fn clone(&self) -> AsyncMdEvent
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AsyncMdEvent
impl RefUnwindSafe for AsyncMdEvent
impl Send for AsyncMdEvent
impl Sync for AsyncMdEvent
impl Unpin for AsyncMdEvent
impl UnwindSafe for AsyncMdEvent
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