pub struct MemoryUserSigningKeyStore { /* private fields */ }Expand description
In-memory UserSigningKeyStore for tests and single-node bootstrapping.
Cheap to clone — shares one backing map.
Implementations§
Source§impl MemoryUserSigningKeyStore
impl MemoryUserSigningKeyStore
pub fn new() -> Self
Sourcepub fn insert(&self, key: UserSigningKey)
pub fn insert(&self, key: UserSigningKey)
Test/bootstrapping helper — push a key into the trusted set.
Trait Implementations§
Source§impl Clone for MemoryUserSigningKeyStore
impl Clone for MemoryUserSigningKeyStore
Source§fn clone(&self) -> MemoryUserSigningKeyStore
fn clone(&self) -> MemoryUserSigningKeyStore
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 MemoryUserSigningKeyStore
impl Debug for MemoryUserSigningKeyStore
Source§impl Default for MemoryUserSigningKeyStore
impl Default for MemoryUserSigningKeyStore
Source§fn default() -> MemoryUserSigningKeyStore
fn default() -> MemoryUserSigningKeyStore
Returns the “default value” for a type. Read more
Source§impl UserSigningKeyStore for MemoryUserSigningKeyStore
impl UserSigningKeyStore for MemoryUserSigningKeyStore
Source§fn list_active_for_user<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 PrincipalId,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserSigningKey>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_active_for_user<'life0, 'life1, 'async_trait>(
&'life0 self,
user: &'life1 PrincipalId,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserSigningKey>, StoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Every
Active key trusted for user. Order is unspecified.Auto Trait Implementations§
impl Freeze for MemoryUserSigningKeyStore
impl RefUnwindSafe for MemoryUserSigningKeyStore
impl Send for MemoryUserSigningKeyStore
impl Sync for MemoryUserSigningKeyStore
impl Unpin for MemoryUserSigningKeyStore
impl UnsafeUnpin for MemoryUserSigningKeyStore
impl UnwindSafe for MemoryUserSigningKeyStore
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