pub fn open<P: AsRef<Path>>(path: P) -> Result<CryptDeviceOpenBuilder>
Builder to open a crypt device at the specified path
use cryptsetup_rs::*; let device = open("/dev/loop0")?.luks1()?;