pub struct FileVault { /* private fields */ }Implementations§
Trait Implementations§
Source§impl IdentityVault for FileVault
impl IdentityVault for FileVault
type Error = FileVaultError
fn load( &self, label: &IdentityLabel, ) -> Result<Option<Zeroizing<[u8; 64]>>, <FileVault as IdentityVault>::Error>
fn store( &mut self, label: &IdentityLabel, secret: &[u8; 64], ) -> Result<(), <FileVault as IdentityVault>::Error>
fn remove( &mut self, label: &IdentityLabel, ) -> Result<Removal, <FileVault as IdentityVault>::Error>
fn stored_blob_len( &self, label: &IdentityLabel, ) -> Result<Option<usize>, <FileVault as IdentityVault>::Error>
Source§fn load_blob<'b>(
&self,
label: &IdentityLabel,
buf: &'b mut [u8],
) -> Result<Option<&'b [u8]>, <FileVault as IdentityVault>::Error>
fn load_blob<'b>( &self, label: &IdentityLabel, buf: &'b mut [u8], ) -> Result<Option<&'b [u8]>, <FileVault as IdentityVault>::Error>
A
buf shorter than the stored blob is the impl’s error, never a silent truncation.fn store_blob( &mut self, label: &IdentityLabel, blob: &[u8], ) -> Result<(), <FileVault as IdentityVault>::Error>
Auto Trait Implementations§
impl Freeze for FileVault
impl RefUnwindSafe for FileVault
impl Send for FileVault
impl Sync for FileVault
impl Unpin for FileVault
impl UnsafeUnpin for FileVault
impl UnwindSafe for FileVault
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