pub struct StandardSession { /* private fields */ }Expand description
标准微信会话(内存实现)。
承载会话属性,支持过期(默认 30 分钟,对应 Java StandardSession 的
maxInactiveInterval 语义)。
Implementations§
Source§impl StandardSession
impl StandardSession
Sourcepub fn clone_session(&self) -> StandardSession
pub fn clone_session(&self) -> StandardSession
返回会话的独立副本(属性深拷贝)。
Trait Implementations§
Source§impl Debug for StandardSession
impl Debug for StandardSession
Source§impl WxSession for StandardSession
impl WxSession for StandardSession
Source§fn remove_attribute(&self, name: &str)
fn remove_attribute(&self, name: &str)
移除属性。 Read more
Source§fn invalidate(&self)
fn invalidate(&self)
使会话失效(过期)。
Auto Trait Implementations§
impl !Freeze for StandardSession
impl RefUnwindSafe for StandardSession
impl Send for StandardSession
impl Sync for StandardSession
impl Unpin for StandardSession
impl UnsafeUnpin for StandardSession
impl UnwindSafe for StandardSession
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