pub struct ServerSessionMemoryCache { /* private fields */ }展开描述
实现 StoresServerSessions that stores everything
in memory. If enforces 一个 limit on the number of stored sessions
到 bound memory usage.
实现§
Source§impl ServerSessionMemoryCache
impl ServerSessionMemoryCache
Trait 实现§
Source§impl Debug for ServerSessionMemoryCache
impl Debug for ServerSessionMemoryCache
Source§impl StoresServerSessions for ServerSessionMemoryCache
impl StoresServerSessions for ServerSessionMemoryCache
Source§fn put(&self, key: Vec<u8>, value: Vec<u8>) -> bool
fn put(&self, key: Vec<u8>, value: Vec<u8>) -> bool
Store session secrets encoded in
value against key,
overwrites any existing value against key. Returns true
则返回 true。Source§fn get(&self, key: &[u8]) -> Option<Vec<u8>>
fn get(&self, key: &[u8]) -> Option<Vec<u8>>
Find 一个 value with the given
key. Return it, 或 None
if it doesn’t exist.自动 Trait 实现§
impl !Freeze for ServerSessionMemoryCache
impl RefUnwindSafe for ServerSessionMemoryCache
impl Send for ServerSessionMemoryCache
impl Sync for ServerSessionMemoryCache
impl Unpin for ServerSessionMemoryCache
impl UnsafeUnpin for ServerSessionMemoryCache
impl UnwindSafe for ServerSessionMemoryCache
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. 更多信息