pub enum SessionThreat {
TokenUnknown,
TokenExpired,
TokenRevoked,
FingerprintMismatch,
SignatureInvalid,
SignatureMissing,
SignatureUnexpected,
LocationChanged,
ImpossibleTravel {
kmh: f64,
},
TimestampSkew,
StoreUnavailable,
}Expand description
会话安全威胁。见 spec 的判定与处置映射表。
Variants§
TokenUnknown
TokenExpired
TokenRevoked
FingerprintMismatch
SignatureInvalid
SignatureMissing
SignatureUnexpected
登录时未设签名基线,但本请求提供了签名。
LocationChanged
ImpossibleTravel
TimestampSkew
Implementations§
Trait Implementations§
Source§impl Clone for SessionThreat
impl Clone for SessionThreat
Source§impl Debug for SessionThreat
impl Debug for SessionThreat
Source§impl Display for SessionThreat
人类可读的威胁描述,供日志直接打印。
impl Display for SessionThreat
人类可读的威胁描述,供日志直接打印。
Source§impl PartialEq for SessionThreat
impl PartialEq for SessionThreat
impl StructuralPartialEq for SessionThreat
Auto Trait Implementations§
impl Freeze for SessionThreat
impl RefUnwindSafe for SessionThreat
impl Send for SessionThreat
impl Sync for SessionThreat
impl Unpin for SessionThreat
impl UnsafeUnpin for SessionThreat
impl UnwindSafe for SessionThreat
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