pub struct ReEncrypt<const KEY_LEN: usize>;Expand description
Re-encrypts the buffer using RC4 on drop. This ensures the plaintext never remains in memory after the value is dropped.
Trait Implementations§
Auto Trait Implementations§
impl<const KEY_LEN: usize> Freeze for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> RefUnwindSafe for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> Send for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> Sync for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> Unpin for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> UnsafeUnpin for ReEncrypt<KEY_LEN>
impl<const KEY_LEN: usize> UnwindSafe for ReEncrypt<KEY_LEN>
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