#[repr(i32)]pub enum ProgramStatusType {
Show 13 variants
None = 0,
Loaded = 1,
Loging = 2,
NeedPicVerifyCode = 3,
NeedPhoneVerifyCode = 4,
LoginFailed = 5,
ForceUpdate = 6,
NessaryDataPreparing = 7,
NessaryDataMissing = 8,
UnAgreeDisclaimer = 9,
Ready = 10,
ForceLogout = 11,
DisclaimerPullFailed = 12,
}Variants§
None = 0
Loaded = 1
已完成类似加载配置,启动服务器等操作,服务器启动之前的状态无需返回
Loging = 2
登录中
NeedPicVerifyCode = 3
需要图形验证码
NeedPhoneVerifyCode = 4
需要手机验证码
LoginFailed = 5
登录失败,详细原因在描述返回
ForceUpdate = 6
客户端版本过低
NessaryDataPreparing = 7
正在拉取类似免责声明等一些必要信息
NessaryDataMissing = 8
缺少必要信息
UnAgreeDisclaimer = 9
未同意免责声明
Ready = 10
可以接收业务协议收发,正常可用状态
ForceLogout = 11
OpenD登录后被强制退出登录,会导致连接全部断开,需要重连后才能得到以下该状态(并且需要在ui模式下)
被强制退出登录,例如修改了登录密码,中途打开设备锁等,详细原因在描述返回
DisclaimerPullFailed = 12
拉取免责声明标志失败
Implementations§
Source§impl ProgramStatusType
impl ProgramStatusType
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 ProgramStatusType
impl Clone for ProgramStatusType
Source§fn clone(&self) -> ProgramStatusType
fn clone(&self) -> ProgramStatusType
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 ProgramStatusType
impl Debug for ProgramStatusType
Source§impl Default for ProgramStatusType
impl Default for ProgramStatusType
Source§fn default() -> ProgramStatusType
fn default() -> ProgramStatusType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgramStatusType
impl<'de> Deserialize<'de> for ProgramStatusType
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<ProgramStatusType> for i32
impl From<ProgramStatusType> for i32
Source§fn from(value: ProgramStatusType) -> i32
fn from(value: ProgramStatusType) -> i32
Converts to this type from the input type.
Source§impl Hash for ProgramStatusType
impl Hash for ProgramStatusType
Source§impl Ord for ProgramStatusType
impl Ord for ProgramStatusType
Source§fn cmp(&self, other: &ProgramStatusType) -> Ordering
fn cmp(&self, other: &ProgramStatusType) -> 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 ProgramStatusType
impl PartialEq for ProgramStatusType
Source§impl PartialOrd for ProgramStatusType
impl PartialOrd for ProgramStatusType
Source§impl Serialize for ProgramStatusType
impl Serialize for ProgramStatusType
Source§impl TryFrom<i32> for ProgramStatusType
impl TryFrom<i32> for ProgramStatusType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProgramStatusType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProgramStatusType, UnknownEnumValue>
Performs the conversion.
impl Copy for ProgramStatusType
impl Eq for ProgramStatusType
impl StructuralPartialEq for ProgramStatusType
Auto Trait Implementations§
impl Freeze for ProgramStatusType
impl RefUnwindSafe for ProgramStatusType
impl Send for ProgramStatusType
impl Sync for ProgramStatusType
impl Unpin for ProgramStatusType
impl UnwindSafe for ProgramStatusType
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