INNER CODE UNIT · Rust

_guard

xoriors/rencfs · java-bridge/src/lib.rs:117

    let _guard = &*LOG_GUARD;
    let mount_path: String = env.get_string(&mnt).unwrap().into();
    let data_dir_path: String = env.get_string(&data_dir).unwrap().into();
    let password: String = env.get_string(&password).unwrap().into();
    let new_pass = SecretString::new(Box::new(password));

    info!("mount_path: {}", mount_path);
    info!("data_dir_path: {}", data_dir_path);

    if STATE.lock().unwrap().dry_run {
        return 0;
    } else if STATE.lock().unwrap().simulate_mount_error {
        let _ = env.throw_new("java/io/IOException", "cannot mount".to_string());
        return -1;
    }

    if !*CRL_C_INITIALIZED.lock().unwrap() {
        RT.block_on(async {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…