pub struct OrbitSessionStorage { /* private fields */ }Trait Implementations§
Source§impl Debug for OrbitSessionStorage
impl Debug for OrbitSessionStorage
Source§impl StoresServerSessions for OrbitSessionStorage
impl StoresServerSessions for OrbitSessionStorage
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
if the value was stored.Source§fn get(&self, key: &[u8]) -> Option<Vec<u8>>
fn get(&self, key: &[u8]) -> Option<Vec<u8>>
Find a value with the given
key. Return it, or None
if it doesn’t exist.Source§impl StoresServerSessions for OrbitSessionStorage
impl StoresServerSessions for OrbitSessionStorage
Source§fn put(&self, key: ServerSessionKey<'_>, value: Vec<u8>) -> bool
fn put(&self, key: ServerSessionKey<'_>, value: Vec<u8>) -> bool
Store session secrets encoded in
value against key,
overwrites any existing value against key. Returns true
if the value was stored.Source§fn get(&self, key: ServerSessionKey<'_>) -> Option<Vec<u8>>
fn get(&self, key: ServerSessionKey<'_>) -> Option<Vec<u8>>
Find a value with the given
key. Return it, or None
if it doesn’t exist.Auto Trait Implementations§
impl Freeze for OrbitSessionStorage
impl RefUnwindSafe for OrbitSessionStorage
impl Send for OrbitSessionStorage
impl Sync for OrbitSessionStorage
impl Unpin for OrbitSessionStorage
impl UnsafeUnpin for OrbitSessionStorage
impl UnwindSafe for OrbitSessionStorage
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