pub struct MemoryConnectionStore { /* private fields */ }Expand description
In-memory connection store that does not persist to disk.
Used for ephemeral connections where the connection should not be saved.
Implementations§
Trait Implementations§
Source§impl ConnectionStore for MemoryConnectionStore
impl ConnectionStore for MemoryConnectionStore
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
fingerprint: &'life1 IdentityFingerprint,
) -> Pin<Box<dyn Future<Output = Option<ConnectionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
fingerprint: &'life1 IdentityFingerprint,
) -> Pin<Box<dyn Future<Output = Option<ConnectionInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a connection by fingerprint, returning
None if not found.Source§fn save<'life0, 'async_trait>(
&'life0 mut self,
connection: ConnectionInfo,
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 mut self,
connection: ConnectionInfo,
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a connection (insert or replace).
Auto Trait Implementations§
impl Freeze for MemoryConnectionStore
impl RefUnwindSafe for MemoryConnectionStore
impl Send for MemoryConnectionStore
impl Sync for MemoryConnectionStore
impl Unpin for MemoryConnectionStore
impl UnsafeUnpin for MemoryConnectionStore
impl UnwindSafe for MemoryConnectionStore
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