#[repr(i32)]pub enum GtwEventType {
Show 16 variants
None = 0,
LocalCfgLoadFailed = 1,
ApiSvrRunFailed = 2,
ForceUpdate = 3,
LoginFailed = 4,
UnAgreeDisclaimer = 5,
NetCfgMissing = 6,
KickedOut = 7,
LoginPwdChanged = 8,
BanLogin = 9,
NeedPicVerifyCode = 10,
NeedPhoneVerifyCode = 11,
AppDataNotExist = 12,
NessaryDataMissing = 13,
TradePwdChanged = 14,
EnableDeviceLock = 15,
}Variants§
None = 0
正常无错
LocalCfgLoadFailed = 1
加载本地配置失败
ApiSvrRunFailed = 2
服务器启动失败
ForceUpdate = 3
客户端版本过低
LoginFailed = 4
登录失败
UnAgreeDisclaimer = 5
未同意免责声明
NetCfgMissing = 6
缺少必要网络配置信息;例如控制订阅额度 //已优化,不会再出现该情况
KickedOut = 7
牛牛帐号在别处登录
LoginPwdChanged = 8
登录密码被修改
BanLogin = 9
用户被禁止登录
NeedPicVerifyCode = 10
需要图形验证码
NeedPhoneVerifyCode = 11
需要手机验证码
AppDataNotExist = 12
程序自带数据不存在
NessaryDataMissing = 13
缺少必要数据
TradePwdChanged = 14
交易密码被修改
EnableDeviceLock = 15
启用设备锁
Implementations§
Source§impl GtwEventType
impl GtwEventType
Source§impl GtwEventType
impl GtwEventType
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 GtwEventType
impl Clone for GtwEventType
Source§fn clone(&self) -> GtwEventType
fn clone(&self) -> GtwEventType
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 GtwEventType
impl Debug for GtwEventType
Source§impl Default for GtwEventType
impl Default for GtwEventType
Source§fn default() -> GtwEventType
fn default() -> GtwEventType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GtwEventType
impl<'de> Deserialize<'de> for GtwEventType
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<GtwEventType> for i32
impl From<GtwEventType> for i32
Source§fn from(value: GtwEventType) -> i32
fn from(value: GtwEventType) -> i32
Converts to this type from the input type.
Source§impl Hash for GtwEventType
impl Hash for GtwEventType
Source§impl Ord for GtwEventType
impl Ord for GtwEventType
Source§fn cmp(&self, other: &GtwEventType) -> Ordering
fn cmp(&self, other: &GtwEventType) -> 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 GtwEventType
impl PartialEq for GtwEventType
Source§impl PartialOrd for GtwEventType
impl PartialOrd for GtwEventType
Source§impl Serialize for GtwEventType
impl Serialize for GtwEventType
Source§impl TryFrom<i32> for GtwEventType
impl TryFrom<i32> for GtwEventType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<GtwEventType, UnknownEnumValue>
fn try_from(value: i32) -> Result<GtwEventType, UnknownEnumValue>
Performs the conversion.
impl Copy for GtwEventType
impl Eq for GtwEventType
impl StructuralPartialEq for GtwEventType
Auto Trait Implementations§
impl Freeze for GtwEventType
impl RefUnwindSafe for GtwEventType
impl Send for GtwEventType
impl Sync for GtwEventType
impl Unpin for GtwEventType
impl UnwindSafe for GtwEventType
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