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