#[repr(i32)]pub enum QotPushStage {
Unkonw = 0,
Sr2ss = 1,
Ss2cr = 2,
Cr2cs = 3,
Ss2cs = 4,
Sr2cs = 5,
}Expand description
某段时间的统计数据 SR表示服务器收到数据,目前只有港股支持SR字段,SS表示服务器发出数据 CR表示OpenD收到数据,CS表示OpenD发出数据
Variants§
Unkonw = 0
未知
Sr2ss = 1
统计服务端处理耗时
Ss2cr = 2
统计网络耗时
Cr2cs = 3
统计OpenD处理耗时
Ss2cs = 4
统计服务器发出到OpenD发出的处理耗时
Sr2cs = 5
统计服务器收到数据到OpenD发出的处理耗时
Implementations§
Source§impl QotPushStage
impl QotPushStage
Source§impl QotPushStage
impl QotPushStage
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for QotPushStage
impl Clone for QotPushStage
Source§fn clone(&self) -> QotPushStage
fn clone(&self) -> QotPushStage
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 moreSource§impl Debug for QotPushStage
impl Debug for QotPushStage
Source§impl Default for QotPushStage
impl Default for QotPushStage
Source§fn default() -> QotPushStage
fn default() -> QotPushStage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QotPushStage
impl<'de> Deserialize<'de> for QotPushStage
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<QotPushStage> for i32
impl From<QotPushStage> for i32
Source§fn from(value: QotPushStage) -> i32
fn from(value: QotPushStage) -> i32
Converts to this type from the input type.
Source§impl Hash for QotPushStage
impl Hash for QotPushStage
Source§impl Ord for QotPushStage
impl Ord for QotPushStage
Source§fn cmp(&self, other: &QotPushStage) -> Ordering
fn cmp(&self, other: &QotPushStage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QotPushStage
impl PartialEq for QotPushStage
Source§impl PartialOrd for QotPushStage
impl PartialOrd for QotPushStage
Source§impl Serialize for QotPushStage
impl Serialize for QotPushStage
Source§impl TryFrom<i32> for QotPushStage
impl TryFrom<i32> for QotPushStage
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<QotPushStage, UnknownEnumValue>
fn try_from(value: i32) -> Result<QotPushStage, UnknownEnumValue>
Performs the conversion.
impl Copy for QotPushStage
impl Eq for QotPushStage
impl StructuralPartialEq for QotPushStage
Auto Trait Implementations§
impl Freeze for QotPushStage
impl RefUnwindSafe for QotPushStage
impl Send for QotPushStage
impl Sync for QotPushStage
impl Unpin for QotPushStage
impl UnwindSafe for QotPushStage
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