#[repr(i32)]pub enum AuthStateDiffReason {
ERsnNone = 0,
ERsnIpAreaNotMatch = 1,
ERsnMultiClt = 2,
ERsnCltReq = 3,
ERsnGetCardFail = 4,
}Expand description
客户拥有的权限和本次登录权限不一致的原因
Variants§
ERsnNone = 0
ERsnIpAreaNotMatch = 1
登录区域限制
ERsnMultiClt = 2
多终端登录
ERsnCltReq = 3
客户端主动请求低权限
ERsnGetCardFail = 4
获取免费行情卡失败
Implementations§
Source§impl AuthStateDiffReason
impl AuthStateDiffReason
Sourcepub fn from_i32(value: i32) -> Option<AuthStateDiffReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AuthStateDiffReason>
Converts an i32 to a AuthStateDiffReason, or None if value is not a valid variant.
Source§impl AuthStateDiffReason
impl AuthStateDiffReason
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 AuthStateDiffReason
impl Clone for AuthStateDiffReason
Source§fn clone(&self) -> AuthStateDiffReason
fn clone(&self) -> AuthStateDiffReason
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 AuthStateDiffReason
impl Debug for AuthStateDiffReason
Source§impl Default for AuthStateDiffReason
impl Default for AuthStateDiffReason
Source§fn default() -> AuthStateDiffReason
fn default() -> AuthStateDiffReason
Returns the “default value” for a type. Read more
Source§impl From<AuthStateDiffReason> for i32
impl From<AuthStateDiffReason> for i32
Source§fn from(value: AuthStateDiffReason) -> i32
fn from(value: AuthStateDiffReason) -> i32
Converts to this type from the input type.
Source§impl Hash for AuthStateDiffReason
impl Hash for AuthStateDiffReason
Source§impl Ord for AuthStateDiffReason
impl Ord for AuthStateDiffReason
Source§fn cmp(&self, other: &AuthStateDiffReason) -> Ordering
fn cmp(&self, other: &AuthStateDiffReason) -> 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 AuthStateDiffReason
impl PartialEq for AuthStateDiffReason
Source§impl PartialOrd for AuthStateDiffReason
impl PartialOrd for AuthStateDiffReason
Source§impl TryFrom<i32> for AuthStateDiffReason
impl TryFrom<i32> for AuthStateDiffReason
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AuthStateDiffReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<AuthStateDiffReason, UnknownEnumValue>
Performs the conversion.
impl Copy for AuthStateDiffReason
impl Eq for AuthStateDiffReason
impl StructuralPartialEq for AuthStateDiffReason
Auto Trait Implementations§
impl Freeze for AuthStateDiffReason
impl RefUnwindSafe for AuthStateDiffReason
impl Send for AuthStateDiffReason
impl Sync for AuthStateDiffReason
impl Unpin for AuthStateDiffReason
impl UnsafeUnpin for AuthStateDiffReason
impl UnwindSafe for AuthStateDiffReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.