Struct libcryptsetup_rs::CryptInit
source · pub struct CryptInit;
Expand description
Initialization handle for devices
Implementations§
source§impl CryptInit
impl CryptInit
sourcepub fn init(device_path: &Path) -> Result<CryptDevice, LibcryptErr>
pub fn init(device_path: &Path) -> Result<CryptDevice, LibcryptErr>
Initialize by device path
sourcepub fn init_with_data_device(
device_paths: Either<&Path, (&Path, &Path)>
) -> Result<CryptDevice, LibcryptErr>
pub fn init_with_data_device( device_paths: Either<&Path, (&Path, &Path)> ) -> Result<CryptDevice, LibcryptErr>
Initialize by device path or a header path and a data device path
sourcepub fn init_by_name_and_header(
name: &str,
header_device_path: Option<&Path>
) -> Result<CryptDevice, LibcryptErr>
pub fn init_by_name_and_header( name: &str, header_device_path: Option<&Path> ) -> Result<CryptDevice, LibcryptErr>
Initialize by name and header device path
Auto Trait Implementations§
impl Freeze for CryptInit
impl RefUnwindSafe for CryptInit
impl Send for CryptInit
impl Sync for CryptInit
impl Unpin for CryptInit
impl UnwindSafe for CryptInit
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