Struct libcryptsetup_rs::CryptKeyfile
source · [−]pub struct CryptKeyfile<'a> { /* private fields */ }
Expand description
Handle for keyfile operations
Implementations
sourceimpl<'a> CryptKeyfile<'a>
impl<'a> CryptKeyfile<'a>
sourcepub fn device_read(
&mut self,
keyfile: &Path,
keyfile_offset: u64,
key_size: Option<size_t>,
flags: CryptKeyfileFlags
) -> Result<CryptKeyfileContents, LibcryptErr>
pub fn device_read(
&mut self,
keyfile: &Path,
keyfile_offset: u64,
key_size: Option<size_t>,
flags: CryptKeyfileFlags
) -> Result<CryptKeyfileContents, LibcryptErr>
Read keyfile into memory - these bindings will automatically
safely clean it up after CryptKeyfileContents
is dropped
Auto Trait Implementations
impl<'a> RefUnwindSafe for CryptKeyfile<'a>
impl<'a> !Send for CryptKeyfile<'a>
impl<'a> !Sync for CryptKeyfile<'a>
impl<'a> Unpin for CryptKeyfile<'a>
impl<'a> !UnwindSafe for CryptKeyfile<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more