pub struct NoServerSessionStorage {}展开描述
从不存储会话的对象。
Trait 实现§
Source§impl Debug for NoServerSessionStorage
impl Debug for NoServerSessionStorage
Source§impl StoresServerSessions for NoServerSessionStorage
impl StoresServerSessions for NoServerSessionStorage
Source§fn put(&self, _id: Vec<u8>, _sec: Vec<u8>) -> bool
fn put(&self, _id: Vec<u8>, _sec: Vec<u8>) -> bool
Store session secrets encoded in
value against key,
overwrites any existing value against key. Returns true
则返回 true。Source§fn get(&self, _id: &[u8]) -> Option<Vec<u8>>
fn get(&self, _id: &[u8]) -> Option<Vec<u8>>
Find 一个 value with the given
key. Return it, 或 None
if it doesn’t exist.自动 Trait 实现§
impl Freeze for NoServerSessionStorage
impl RefUnwindSafe for NoServerSessionStorage
impl Send for NoServerSessionStorage
impl Sync for NoServerSessionStorage
impl Unpin for NoServerSessionStorage
impl UnsafeUnpin for NoServerSessionStorage
impl UnwindSafe for NoServerSessionStorage
Blanket 实现§
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 从 an owned value. 更多信息