pub struct LoginCache { /* private fields */ }Expand description
登录缓存
Implementations§
Source§impl LoginCache
impl LoginCache
pub fn new() -> Self
pub fn set_login_state(&self, state: LoginState)
pub fn get_login_state(&self) -> Option<LoginState>
pub fn is_logged_in(&self) -> bool
pub fn clear(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LoginCache
impl !RefUnwindSafe for LoginCache
impl Send for LoginCache
impl Sync for LoginCache
impl Unpin for LoginCache
impl UnwindSafe for LoginCache
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