[−][src]Module libzetta::zpool::open3
Open3 implementation of ZpoolEngine
.
Easy way - ZpoolOpen3::default()
.
It will look for ZPOOL_CMD
in current
environment and fall back to zpool
in PATH
.
Another way to specify is to use ZpoolOpen3::new("/path/to/my/zpool")
.
Usage
use libzetta::zpool::{ZpoolEngine, ZpoolOpen3}; let engine = ZpoolOpen3::default(); // Check that pool with name z exists. assert!(engine.exists("z").unwrap()); let remote = ZpoolOpen3::with_cmd("zpool.sh"); assert!(engine.exists("z").unwrap());
It's called open3 because it opens stdin
, stdout
, stderr
.
Structs
ZpoolOpen3 | Open3 implementation of |