pub trait Env {
// Required method
fn persist_dir(&self) -> PathBuf;
// Provided methods
fn contains<P: AsRef<Path>>(&self, p: P) -> bool { ... }
fn init(&self) -> Result<()> { ... }
}
Expand description
Defines a NetNs environment behavior.
Required Methods§
Sourcefn persist_dir(&self) -> PathBuf
fn persist_dir(&self) -> PathBuf
The persist directory of the NetNs environment.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.