pub struct EncryptedFormat<'a, F: Format> { /* private fields */ }Expand description
Wraps a Format to transparently decrypt on parse and encrypt on serialize.
Use this for “app data” files that should be opaque on disk (e.g. session tokens).
Implementations§
Trait Implementations§
Source§impl<F: Format> Format for EncryptedFormat<'_, F>
impl<F: Format> Format for EncryptedFormat<'_, F>
Auto Trait Implementations§
impl<'a, F> !RefUnwindSafe for EncryptedFormat<'a, F>
impl<'a, F> !UnwindSafe for EncryptedFormat<'a, F>
impl<'a, F> Freeze for EncryptedFormat<'a, F>where
F: Freeze,
impl<'a, F> Send for EncryptedFormat<'a, F>where
F: Send,
impl<'a, F> Sync for EncryptedFormat<'a, F>where
F: Sync,
impl<'a, F> Unpin for EncryptedFormat<'a, F>where
F: Unpin,
impl<'a, F> UnsafeUnpin for EncryptedFormat<'a, F>where
F: UnsafeUnpin,
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