[][src]Function cryptsetup_rs::api::open

pub fn open<P: AsRef<Path>>(path: P) -> Result<CryptDeviceOpenBuilder>

Builder to open a crypt device at the specified path

Examples

use cryptsetup_rs::*;
let device = open("/dev/loop0")?.luks1()?;