pub struct MemoryStorage<C: Crypto, PK, SK, M> { /* private fields */ }Expand description
Keystore implementation which stores the encrypted key in memory.
This is provided mainly for testing in environments where hitting the
filesystem is undesirable, and otherwise equivalent to FileStorage.
Implementations§
Trait Implementations§
Source§impl<C, PK, SK, M> Keystore for MemoryStorage<C, PK, SK, M>
impl<C, PK, SK, M> Keystore for MemoryStorage<C, PK, SK, M>
type PublicKey = PK
type SecretKey = SK
type Metadata = M
type Error = Error<<C as Crypto>::Error, <SK as SecretKeyExt>::Error>
Source§fn put_key(&mut self, key: Self::SecretKey) -> Result<(), Self::Error>
fn put_key(&mut self, key: Self::SecretKey) -> Result<(), Self::Error>
Securely store secret key
key in the keystore. Read moreAuto Trait Implementations§
impl<C, PK, SK, M> Freeze for MemoryStorage<C, PK, SK, M>
impl<C, PK, SK, M> RefUnwindSafe for MemoryStorage<C, PK, SK, M>where
C: RefUnwindSafe,
SK: RefUnwindSafe,
PK: RefUnwindSafe,
<C as Crypto>::SecretBox: RefUnwindSafe,
M: RefUnwindSafe,
impl<C, PK, SK, M> Send for MemoryStorage<C, PK, SK, M>
impl<C, PK, SK, M> Sync for MemoryStorage<C, PK, SK, M>
impl<C, PK, SK, M> Unpin for MemoryStorage<C, PK, SK, M>
impl<C, PK, SK, M> UnwindSafe for MemoryStorage<C, PK, SK, M>where
C: UnwindSafe,
SK: UnwindSafe,
PK: UnwindSafe,
<C as Crypto>::SecretBox: UnwindSafe,
M: UnwindSafe,
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