pub struct InMemorySessionStorageStore { /* private fields */ }Expand description
In-memory implementation of session key/value and secret storage.
Implementations§
Trait Implementations§
Source§impl Clone for InMemorySessionStorageStore
impl Clone for InMemorySessionStorageStore
Source§fn clone(&self) -> InMemorySessionStorageStore
fn clone(&self) -> InMemorySessionStorageStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemorySessionStorageStore
impl Debug for InMemorySessionStorageStore
Source§impl Default for InMemorySessionStorageStore
impl Default for InMemorySessionStorageStore
Source§fn default() -> InMemorySessionStorageStore
fn default() -> InMemorySessionStorageStore
Returns the “default value” for a type. Read more
Source§impl SessionStorageStore for InMemorySessionStorageStore
impl SessionStorageStore for InMemorySessionStorageStore
Source§fn set_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Set a key/value pair (creates or updates)
Source§fn get_value<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_value<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a value by key
Source§fn delete_value<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_value<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a key/value pair
Source§fn list_keys<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<KeyInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_keys<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<KeyInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all keys in a session
Source§fn set_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: SessionId,
name: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_id: SessionId,
name: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Set a secret (creates or updates, value is encrypted before storage)
Source§fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: SessionId,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a secret by name (value is decrypted before returning)
Auto Trait Implementations§
impl Freeze for InMemorySessionStorageStore
impl !RefUnwindSafe for InMemorySessionStorageStore
impl Send for InMemorySessionStorageStore
impl Sync for InMemorySessionStorageStore
impl Unpin for InMemorySessionStorageStore
impl UnsafeUnpin for InMemorySessionStorageStore
impl !UnwindSafe for InMemorySessionStorageStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request