pub struct MemoryPskStore { /* private fields */ }Expand description
In-memory PSK store that does not persist to disk.
Used for tests and examples where reusable PSKs should not be saved.
Implementations§
Trait Implementations§
Source§impl Default for MemoryPskStore
impl Default for MemoryPskStore
Source§impl PskStore for MemoryPskStore
impl PskStore for MemoryPskStore
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
psk_id: &'life1 PskId,
) -> Pin<Box<dyn Future<Output = Option<PskEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
psk_id: &'life1 PskId,
) -> Pin<Box<dyn Future<Output = Option<PskEntry>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a PSK entry by its identifier.
Source§fn save<'life0, 'async_trait>(
&'life0 mut self,
entry: PskEntry,
) -> 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,
entry: PskEntry,
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Save a PSK entry (insert or replace).
Auto Trait Implementations§
impl Freeze for MemoryPskStore
impl RefUnwindSafe for MemoryPskStore
impl Send for MemoryPskStore
impl Sync for MemoryPskStore
impl Unpin for MemoryPskStore
impl UnsafeUnpin for MemoryPskStore
impl UnwindSafe for MemoryPskStore
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