Struct culper_lib::vault::SealedVault
source · pub struct SealedVault {
pub secret: Vec<u8>,
pub format: EncryptionFormat,
}
Fields
secret: Vec<u8>
format: EncryptionFormat
Implementations
sourceimpl SealedVault
impl SealedVault
pub fn new(secret: Vec<u8>, format: EncryptionFormat) -> SealedVault
Trait Implementations
sourceimpl OpenableVault for SealedVault
impl OpenableVault for SealedVault
fn unseal<F>(self, f: &F) -> Result<UnsealedVault, Error>where
F: Fn(SealedVault) -> Result<UnsealedVault, Error>,
fn to_string(&self) -> String
Auto Trait Implementations
impl RefUnwindSafe for SealedVault
impl Send for SealedVault
impl Sync for SealedVault
impl Unpin for SealedVault
impl UnwindSafe for SealedVault
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more