pub struct MockKms { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CloudKms for MockKms
impl CloudKms for MockKms
fn encrypt(&self, plaintext: &[u8], key_id: &str) -> Result<Vec<u8>, String>
fn decrypt(&self, ciphertext: &[u8], key_id: &str) -> Result<Vec<u8>, String>
fn create_key(&self, key_id: &str) -> Result<(), String>
fn delete_key(&self, key_id: &str) -> Result<(), String>
fn key_exists(&self, key_id: &str) -> bool
fn name(&self) -> &str
Auto Trait Implementations§
impl !Freeze for MockKms
impl RefUnwindSafe for MockKms
impl Send for MockKms
impl Sync for MockKms
impl Unpin for MockKms
impl UnsafeUnpin for MockKms
impl UnwindSafe for MockKms
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