INNER CODE UNIT · Rust
get_password
xoriors/rencfs · java-bridge/src/lib.rs:176
fn get_password(&self) -> Option<SecretString> {
Some(self.0.clone())
}
}
let mount_point = create_mount_point(
Path::new(&mount_path),
Path::new(&data_dir_path),
Box::new(PasswordProviderImpl(new_pass)), // use the pass one time
Cipher::ChaCha20Poly1305,
false,
false,
false,
);
let handle = match RT.block_on(async {
match mount_point.mount().await {
Ok(handle) => Ok(handle),