pub struct S2c {Show 18 fields
pub market_hk: i32,
pub market_us: i32,
pub market_sh: i32,
pub market_sz: i32,
pub market_hk_future: i32,
pub market_us_future: Option<i32>,
pub market_sg_future: Option<i32>,
pub market_jp_future: Option<i32>,
pub qot_logined: bool,
pub trd_logined: bool,
pub server_ver: i32,
pub server_build_no: i32,
pub time: i64,
pub local_time: Option<f64>,
pub program_status: Option<ProgramStatus>,
pub qot_svr_ip_addr: Option<String>,
pub trd_svr_ip_addr: Option<String>,
pub conn_id: Option<u64>,
}Fields§
§market_hk: i32Qot_Common.QotMarketState,港股主板市场状态
market_us: i32Qot_Common.QotMarketState,美股Nasdaq市场状态
market_sh: i32Qot_Common.QotMarketState,沪市状态
market_sz: i32Qot_Common.QotMarketState,深市状态
market_hk_future: i32Qot_Common.QotMarketState,港股期货市场状态
market_us_future: Option<i32>Qot_Common.QotMarketState,美国期货市场状态
market_sg_future: Option<i32>Qot_Common.QotMarketState,新加坡期货市场状态
market_jp_future: Option<i32>Qot_Common.QotMarketState,日本期货市场状态
qot_logined: bool是否登陆行情服务器
trd_logined: bool是否登陆交易服务器
server_ver: i32版本号
server_build_no: i32buildNo
time: i64当前服务器时间
local_time: Option<f64>当前本地时间
program_status: Option<ProgramStatus>当前程序状态
qot_svr_ip_addr: Option<String>§trd_svr_ip_addr: Option<String>§conn_id: Option<u64>此连接的连接ID,连接的唯一标识
Implementations§
Source§impl S2c
impl S2c
Sourcepub fn local_time(&self) -> f64
pub fn local_time(&self) -> f64
Returns the value of local_time, or the default value if local_time is unset.
Sourcepub fn qot_svr_ip_addr(&self) -> &str
pub fn qot_svr_ip_addr(&self) -> &str
Returns the value of qot_svr_ip_addr, or the default value if qot_svr_ip_addr is unset.
Sourcepub fn trd_svr_ip_addr(&self) -> &str
pub fn trd_svr_ip_addr(&self) -> &str
Returns the value of trd_svr_ip_addr, or the default value if trd_svr_ip_addr is unset.
Sourcepub fn market_us_future(&self) -> i32
pub fn market_us_future(&self) -> i32
Returns the value of market_us_future, or the default value if market_us_future is unset.
Sourcepub fn conn_id(&self) -> u64
pub fn conn_id(&self) -> u64
Returns the value of conn_id, or the default value if conn_id is unset.
Sourcepub fn market_sg_future(&self) -> i32
pub fn market_sg_future(&self) -> i32
Returns the value of market_sg_future, or the default value if market_sg_future is unset.
Sourcepub fn market_jp_future(&self) -> i32
pub fn market_jp_future(&self) -> i32
Returns the value of market_jp_future, or the default value if market_jp_future is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for S2c
impl<'de> Deserialize<'de> for S2c
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>,
Source§impl Message for S2c
impl Message for S2c
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.